Skip to content

Instantly share code, notes, and snippets.

@ywchiu
Created January 7, 2015 14:35
Show Gist options
  • Save ywchiu/ac89048086d473c0d6e8 to your computer and use it in GitHub Desktop.
Save ywchiu/ac89048086d473c0d6e8 to your computer and use it in GitHub Desktop.
FB_GRAPH_API
import requests
import json
access_token = '<acces token>'
res = requests.get("https://graph.facebook.com/v2.2/me/friends?access_token=%s"%(access_token))
js = json.loads(res.text)
for i in js['data']:
print i['name'], i['id']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment