Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save caironm/b6581cabf929f8e880732c36eb9beb5d to your computer and use it in GitHub Desktop.
Save caironm/b6581cabf929f8e880732c36eb9beb5d to your computer and use it in GitHub Desktop.
Python 3.x Facebook Profile
import urllib.request
import json
from pprint import pprint
url = 'https://graph.facebook.com/fmasanori'
resp = urllib.request.urlopen(url).read()
data = json.loads(resp.decode('utf-8'))
pprint (data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment