GNOME Bugzilla – Bug 748847
facebook export doesn't work
Last modified: 2015-08-17 22:36:07 UTC
Trying to publish to facebook, I'm first prompted to log in, which I do, then am taken to the page to select album name etc., then when I hit the "publish" button I get the text "You have already logged in and out of facebook during this Shotwell session. To continue publishing on Facebook, quit and restart Shotwell, then try publishing again." Doing so has the exact same result (I'm not sure when I'm supposed to have logged out of facebook; I even select the "remember me" button!). Consequently, facebook upload is essentially impossible.
Created attachment 302813 [details] settings pane not saving access token in settings, even though presumably it's authenticated, since it gets my user info.
Created attachment 302815 [details] before/after attempting to upload with access-token in view on the right in dconf-editor, before and after hitting "publish": it's announced that I'm not logged in to FB and the access token is deleted. (The language of being "logged in" is confusing to me: I thought that the whole oauth mechanism got around being "logged in" anywhere.)
here's some logging output (I just did a search/replace for g_debug -> printf in FacebookPublishing.c since I couldn't figure out how to get the debug output to actually appear): FacebookPublishing.vala:188: FacebookPublisher instantiated.FacebookPublishing.vala:775: FacebookPublisher: starting interaction.FacebookPublishing.vala:206: no existing Facebook session available.FacebookPublishing.vala:244: ACTION: showing service welcome pane.FacebookPublishing.vala:512: EVENT: user clicked 'Login' on welcome pane.FacebookPublishing.vala:251: ACTION: testing connection to Facebook endpoint.FacebookPublishing.vala:1574: making HTTP request to URI: https://www.facebook.com/FacebookPublishing.vala:524: EVENT: endpoint test transaction detected that the Facebook endpoint is alive.FacebookPublishing.vala:415: ACTION: doing hosted web authentication.FacebookPublishing.vala:547: EVENT: hosted web login succeeded.FacebookPublishing.vala:429: ACTION: preparing to extract session information encoded in uri = 'https://www.facebook.com/connect/login_success.html#access_token=[redacted]&expires_in=5177745'FacebookPublishing.vala:576: EVENT: an authenticated session has become available.FacebookPublishing.vala:463: ACTION: saving session information to configuration system.FacebookPublishing.vala:264: ACTION: fetching user information.FacebookPublishing.vala:1574: making HTTP request to URI: https://graph.facebook.com/me?access_token=[redacted]FacebookPublishing.vala:589: EVENT: user info fetch completed; response = '{"id":"10100582589343110","first_name":"Ben","gender":"male","last_name":"Wolfson","link":"https:\/\/www.facebook.com\/app_scoped_user_id\/[redacted]\/","locale":"en_US","name":"Ben Wolfson","timezone":-7,"updated_time":blishing.vala:611: EVENT: user info extracted from JSON response: uid = 10100582589343110; name = Ben Wolfson.FacebookPublishing.vala:278: ACTION: fetching album list.FacebookPublishing.vala:1574: making HTTP request to URI: https://graph.facebook.com/10100582589343110/albums?access_token=[redacted]FacebookPublishing.vala:623: EVENT: album descriptions fetch transaction completed; response = '{"data":[]}'.FacebookPublishing.vala:311: ACTION: extracting album info from JSON response.FacebookPublishing.vala:646: EVENT: successfully extracted 0 albums from JSON responseFacebookPublishing.vala:359: ACTION: showing publishing options pane.FacebookPublishing.vala:672: EVENT: user clicked 'Publish' in publishing options pane.FacebookPublishing.vala:344: ACTION: creating a new album named "Shotwell Connect". And then it's announced that I'm not logged in. I actually have some albums that already exist; don't know why those don't show up.
derp output wasn't flushed. FacebookPublishing.vala:1574: making HTTP request to URI: https://graph.facebook.com/me/albumsFacebookPublishing.vala:719: EVENT: attempt to create new album generated an error.FacebookPublishing.vala:387: ACTION: clearing persistent session information and restaring interaction.FacebookPublishing.vala:238: invalidating saved Facebook session.FacebookPublishing.vala:775: FacebookPublisher: starting interaction.FacebookPublishing.vala:206: no existing Facebook session available.FacebookPublishing.vala:800: FacebookPublisher: stop( ) invoked.
I am experiencing the same problem, on two machines with two Facebook accounts (mine and my wife's). Ubuntu 14.04 and Shotwell 0.20.2. The bug has also been reported on Launchpad at https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1453549 I've tried to remove and reauthorise Shotwell from Facebook and it appears to request the wrong permissions, not asking for permission to post photos.
I notice too that clicking on the "Shotwell Connect" credit from an earlier successfully published album takes me to https://www.facebook.com/games/?app_id=162702932093&pnref=story which declares "Misconfigured App Sorry, Shotwell Connect hasn't been approved for display in App Centre."
Please close/merge this bug report with https://bugzilla.gnome.org/show_bug.cgi?id=748991 it really does not make sense to have two for the same problem.
that one is a duplicate of this one, not vice versa.
True, but Bug 748991 contains more valuable information by now...
BTW you can log debug messages as follows: SHOTWELL_DEBUG=1 /usr/bin/shotwell
Per comment #9, I am closing this bug. *** This bug has been marked as a duplicate of bug 748991 ***