From c92fa6ab5773813d2abd305e80bdb63cc438e078 Mon Sep 17 00:00:00 2001 From: Martey Dodoo Date: Thu, 10 May 2012 05:16:27 -0400 Subject: [PATCH 1/2] Update README. Clarify put_photo method usage (per issue #30), and update link to Facebook's JavaScript SDK Github repo. --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 2eaaea5..d4ab908 100644 --- a/readme.md +++ b/readme.md @@ -18,10 +18,10 @@ Photo uploads: graph = facebook.GraphAPI(oauth_access_token) tags = json.dumps([{'x':50, 'y':50, tag_uid:12345}, {'x':10, 'y':60, tag_text:'a turtle'}]) - graph.put_photo('img.jpg', 'Look at this cool photo!', album_id_or_None, tags=tags) + graph.put_photo(open('img.jpg'), 'Look at this cool photo!', album_id_or_None, tags=tags) If you are using the module within a web application with the -[JavaScript SDK](http://github.com/facebook/connect-js), you can also use the +[JavaScript SDK](https://github.com/facebook/facebook-js-sdk), you can also use the module to use Facebook for login, parsing the cookie set by the JavaScript SDK for logged in users. For example, in Google AppEngine, you could get the profile of the logged in user with: From daa85aff0ff93ebe41957ab07ddec85e27314db9 Mon Sep 17 00:00:00 2001 From: Kim Vogt Date: Tue, 15 May 2012 12:31:45 -0700 Subject: [PATCH 2/2] There are two different publishing permissions now, publish_actions and publish_stream. To write to a user's feed you only need the publish_actions perm. --- facebook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/facebook.py b/facebook.py index c5aad6e..3af096d 100755 --- a/facebook.py +++ b/facebook.py @@ -124,10 +124,10 @@ def put_object(self, parent_object, connection_name, **data): See http://developers.facebook.com/docs/api#publishing for all of the supported writeable objects. - Most write operations require extended permissions. For example, - publishing wall posts requires the "publish_stream" permission. See - http://developers.facebook.com/docs/authentication/ for details about - extended permissions. + Certain write operations require extended permissions. For example, + publishing to a user's feed requires the "publish_actions" permission. See + http://developers.facebook.com/docs/publishing/ for details about + publishing permissions. """ assert self.access_token, "Write operations require an access token" return self.request(parent_object + "/" + connection_name,