I am developing a mobile camera app that allows posting a photo on facebook. The camera app is a stand-alone and does not require facebook login when it starts. However I want to allow posting a picture to facebook. It follows that the first time a user will try uploading an image it will have to go through the permission login dialog twice.
I cant find a way to ask the user for access his basic information + posting of an image on his wall with one login dialog.
This seems "by design" if you read: http://developers.facebook.com/docs/concepts/login/permissions-login-dialog/
Its a bad users experience to be transfered in and out the mobile app twice in a row to allow posting.
Is there a way to ask the user for basic information + posting of an image in one pass?
Do the following steps :
1) Go to https://developers.facebook.com/apps 2) Click on your app. 3) Click edit app 4) Click Advanced 5) Check Enhanced Auth Dialog: Disabled
That's it. You have one authentication popup.
You get two pop-ups because one of them is a basic permission popup for the app while the other popup asks for extended permissions i.e. publish_stream to post a photo on behalf of the user. For more info on facebook permissions, go to : https://developers.facebook.com/docs/reference/login/