Created
April 26, 2017 20:01
-
-
Save DustinAlandzes/a297e012cfc441e428764f3c723a480f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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