Skip to content

Instantly share code, notes, and snippets.

@DustinAlandzes
Created April 26, 2017 20:01
Show Gist options
  • Save DustinAlandzes/a297e012cfc441e428764f3c723a480f to your computer and use it in GitHub Desktop.
Save DustinAlandzes/a297e012cfc441e428764f3c723a480f to your computer and use it in GitHub Desktop.
import requests
#add flask/routes
#need to implement oauth2, send access token
r = requests.get('https://graph.facebook.com/v2.9/Spurs/photos')
images = []
for image in r['data']:
# example image: https://graph.facebook.com/v2.9/10154433099266981/picture?type=large
images.append("https://graph.facebook.com/v2.9/{}/picture?type=large".format(image["id"]))
return images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment