douyi5157 2013-07-09 10:57
浏览 27
已采纳

为什么Facebook显示多个权限对话?

So, I've got an app that allows a user to enter a competition and then I want to post their entry to their timeline.

So therefore I ask for the permissions as follows:

$loginParams = array(
                    'scope' => 'publish_actions',
                    'redirect_uri' => $facebookSettings['redirectUri']
                );

Which is slimmed down from the initial permissions I had:

...'scope' => 'read_stream, user_photos, photo_upload' ....

But when accessing the page, Facebook still pops up a permission dialogue twice. The first time isn't even accurate, and seems to be causing a lot of dropoff as people won't go past that point.

The first message is:

  XXXXXX would like to access your public profile and friend list.

Secondly, is what I'm actually after:

  XXXXX would like to post to your friends on your behalf.

Can anyone help as to why, is this expected behaviour, or a bug or something I'm doing wrong?

Thanks!

  • 写回答

2条回答 默认 最新

  • doutan1970 2013-07-09 11:40
    关注

    It is not a bug but this is by design, the first dialog box consists of read permissions and if you have asked for the publish_actions or publish_stream a second prompt will appear asking user to provide the write permissions. Quoting from the Permissions documentation

    Additionally publishing permissions such as publish_actions or publish_stream will prompt a second step in the Login dialog, which can cause fewer people to log in.

    Also as a best practice, you should ask the write or publish permissions only when you need it. Quoting from the Permissions documentation,

    Apps should separate the request of read and publish permissions. Plan your app around requesting the bare minimum of read permissions at initial login and then any publish permissions when a person actually needs them, for example when they want to create an Open Graph story from within the app. This provides the best user experience and optimizes conversion.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿