python facebook-sdk posts with location
I'm using the python facebook-sdk and want to find all posts in my news
feed that have a location tagged. To get all posts in my news feed, I know
I can use this:
graph = facebook.GraphAPI(USER_TOKEN)
feed = graph.get_connections("me", "home")
According to facebook's API docs if I want only posts with locations I
need to add the argument 'with=location' to the end of the url generated
by
feed = graph.get_connections("me", "home")
But when I try
feed = graph.get_connections("me", "home", with='location')
I get
SyntaxError: invalid syntax
What am I doing wrong?
No comments:
Post a Comment