Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Last active December 11, 2015 23:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save fmasanori/4674792 to your computer and use it in GitHub Desktop.
Save fmasanori/4674792 to your computer and use it in GitHub Desktop.
Python 3.x Facebook Friends
import urllib.request
import json
#copie o formato no exemplo e pegue o access_token
#em https://developers.facebook.com/tools/explorer
url = 'copie aqui o link Connections Friends'
resp = urllib.request.urlopen(url).read()
data = json.loads(resp.decode('utf-8'))
for amigo in data['data']:
print (amigo['name'])
@HamiltonSantana
Copy link

Olá, estou acompanhando o curso, mas nao consegui utilizar o token.
Gostaria de saber como usa-lo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment