Python - send facebook message
# Download & install https://github.com/carpedm20/fbchat
import fbchat
#Login
client = fbchat.Client("yourid-or-email", "fbpassword")
#Show user info
tinfo = client.getUsers("rayromeoabas")
print tinfo
# send message to id number 1282668763 (rayromeoabas). From facebook, look at friends profile photo, info below your browser
client.send(1282668763,"Hello to facebook from python")
import fbchat
#Login
client = fbchat.Client("yourid-or-email", "fbpassword")
#Show user info
tinfo = client.getUsers("rayromeoabas")
print tinfo
# send message to id number 1282668763 (rayromeoabas). From facebook, look at friends profile photo, info below your browser
client.send(1282668763,"Hello to facebook from python")
0 Comments:
Post a Comment
<< Home