Created
July 11, 2014 13:14
-
-
Save jamiembrown/46b216cb8aa1702aa00c to your computer and use it in GitHub Desktop.
Get access token and search Facebook graph search using Python
This file contains 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 facebook | |
import pprint | |
access_token = facebook.get_app_access_token(app_id, app_secret) | |
graph = facebook.GraphAPI(access_token) | |
graph.timeout = 30 | |
results = graph.request("search", {'type': 'place', 'q': query, 'center': latitude+','+longitude, 'distance': distance, 'fields': field_list}) | |
pprint.pprint(results) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment