Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
from fbchat import Client #imports necessary library
from fbchat.models import *
'''allows user to send facebook messages
def facebook(word):
login=input("facebook login: ")
password=input('Password: ')
friend=input('which friend: ')
message=input('message: ')
client=Client(login,password)
frienduid=client.searchForUsers(friend)
uiid=frienduid[0].uid #checking friend's facebook ID
client.send(Message(text=message), thread_id=uiid, thread_type=ThreadType.USER)
print ('sent') #confirmation