Publishing requires the login dialog to appear twice

I am developing a mobile camera application that allows you to post a photo on facebook. The camera application is standalone and does not require facebook login when it starts. However, I want to allow the posting of the image on facebook. It follows that for the first time, when a user tries to upload an image, he will have to go through the permission dialog twice.

I can’t find a way to request the user access to his basic information + placement of the image on the wall with a single login dialog.

It looks β€œby design” if you read: http://developers.facebook.com/docs/concepts/login/permissions-login-dialog/

A poor number of users who can be transferred to and left the mobile application twice in a row to allow publication.

Can I ask the user for basic information + publish the image in one go?

+4
source share
2 answers

Follow these steps:

1) Go to https://developers.facebook.com/apps 2) Click on your application. 3) Click "Edit Application" 4) Click "Advanced." 5) Check the advanced authorization dialog: disabled

What is it. You have one authentication popup.

You get two pop-ups because one of them is the main pop-up window for the application, while the other pop-up requests advanced permissions, i.e. publish_stream, to publish the photo on behalf of the user. For more information on permissions on facebook, go to: https://developers.facebook.com/docs/reference/login/

0
source

@Oriel Bergig Facebook updates sdk. (v3.0.1 dated March 20, 2013. See what's new in 3.0.). Download from this link.

https://developers.facebook.com/android/

Follow the link. The problem is resolved. If any problem ping me.

0
source

Source: https://habr.com/ru/post/1440398/


All Articles