I'm back with more information. The shotwell code is correct, as far as I can tell. The reason why it's failing is because the access token it gets only carries the permissions to see the public profile, and not the permissions to publich photos or videos. Why this happens, I'm not sure.
My guess is that the Shotwell application in not properly registered in the Facebook servers to comply with the v2.0 API. As far as I know, only Yorba has access to that key, so there isn't much we can do about it. I've tried playing with the authorization URL (note: you should first remove Shotwell from your profile at https://www.facebook.com/settings?tab=applications): https://www.facebook.com//dialog/oauth?client_id=162702932093&redirect_uri=https://www.facebook.com/connect/login_success.html&response_type=token&scope=publish_actions,user_photos,user_videos and it seems that it always ignores the permissions ("scope" parameter) we request. Incidentally, I discovered a bug in our Online Accounts integration with Shotwell, which causes the application to retry the authentication forever when the access to the application is revoked from the facebook site. The attached branch fixes this. -- You received this bug notification because you are a member of Ubuntu Studio Bugs, which is subscribed to shotwell in Ubuntu. Matching subscriptions: Ubuntu Studio Bugs https://bugs.launchpad.net/bugs/1453549 Title: Cannot publish to Facebook Status in Shotwell: Confirmed Status in Webapps Team Task Tracking Project: New Status in shotwell package in Ubuntu: Confirmed Bug description: Whenever I try to publish to facebook I get the error: "You have already logged in and out of Facebook during this Shotwell session. To continue publishing to Facebook, quit and restart Shotwell, then try publishing again." No matter how many times I try this it happens, I start shotwell, select the pics to publish, File - Publish, login into Facebook, then choose options and choose publish and the error appears. Happens everytime I do it. To manage notifications about this bug go to: https://bugs.launchpad.net/shotwell/+bug/1453549/+subscriptions -- Mailing list: https://launchpad.net/~ubuntustudio-bugs Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntustudio-bugs More help : https://help.launchpad.net/ListHelp

