posting requires a permission login dialog to appear twice

雨燕双飞 提交于 2019-12-10 15:16:21

问题


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?


回答1:


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/




回答2:


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

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

Follow the link Problem is solved .If any issue ping me.



来源:https://stackoverflow.com/questions/12943128/posting-requires-a-permission-login-dialog-to-appear-twice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!