Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from fbchat import Client
- from fbchat.models import *
- fb_username= "Your Facebook usersname" # Your Facebook usersname
- fb_password= "Your Facebook password" # Your Facebook password
- client = Client(fb_username,fb_password)
- users = client.fetchAllUsers()
- # retrieve all friends uid, save in listuser
- listuser=[user.uid for user in users if user.uid!="0"]
- #client.logout() # logout
Add Comment
Please, Sign In to add comment