Skip to content

Commit

Permalink
Merge pull request #45 from volker48/master
Browse files Browse the repository at this point in the history
Fix example in readme. The OAuth access token in user dict is keyed as "access_token", not "oauth_access_token".
  • Loading branch information
martey committed Sep 7, 2012
2 parents 25c4dab + fa58e33 commit e406a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -28,7 +28,7 @@ profile of the logged in user with:

user = facebook.get_user_from_cookie(self.request.cookies, key, secret)
if user:
graph = facebook.GraphAPI(user["oauth_access_token"])
graph = facebook.GraphAPI(user["access_token"])
profile = graph.get_object("me")
friends = graph.get_connections("me", "friends")

Expand Down

0 comments on commit e406a70

Please sign in to comment.