facebook - 控制 Facebook oauth 登录体验

标签 facebook oauth

我正在构建一个使用 Facebook oauth 登录的 Facebook 应用程序。我看到一些现有的网站具有将应用程序授权与请求权限相结合的单页面体验。但是,当我构建应用程序时,我看到一个两页授权对话框:应用程序授权和基本权限出现在第一个屏幕上,第二个屏幕要求附加权限。

我想要进入一个单屏对话框,类似于此页面上显示的对话框:

 http://developers.facebook.com/docs/authentication/

但这不是我所看到的,即使我使用该页面中的 URL,即使我使用与我在另一个应用程序中看到的相同的 Oauth 重定向 URL,该应用程序显示了我想要的对话框。

有人对如何使用旧应用程序身份验证对话框有任何想法吗?

最佳答案

简短回答:这就是现在的工作方式。 Facebook 改变了一切。想想吧。

Facebook 改变了身份验证对话框的工作方式。他们似乎试图阻止使用publish_stream和其他权限,并让用户更容易授予开放图publish_actions权限。

来自最近的博客文章:

Added functionality to the publish_actions permission

When we turn on the new auth dialog, we will also add some of the most frequently requested permissions to publish_actions to make the permission more robust and improve conversion. publish_actions now includes the ability to post status updates on the authenticated user’s own timeline, tag photos, publish photos and videos. Other actions such as posting to a friend's timeline still require the use of publish_stream.

Adding these common permissions to publish_actions eliminates the need for extended permissions and the second screen of the auth dialog for the majority of timeline apps built with the Open Graph. This makes the auth process clearer to new users and should improve conversion rates. Additionally, approved Open Graph actions are no longer required for the publish_actions permission. Apps should only ask for the stream_publish permission if they absolutely need functionality not present in publish_actions.

请参阅此博文以获取完整的详细信息和引用:https://developers.facebook.com/blog/post/2012/03/02/enhanced-auth-dialog-and-updates-to-permissions/

订阅 Facebook 开发者博客并监控平台路线图 https://developers.facebook.com/roadmap/是看到这些变化即将到来的好方法。

关于facebook - 控制 Facebook oauth 登录体验,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9586595/

相关文章:

ios - 如何在 Facebook iOS SDK 中获取 Facebook 用户的完整好友列表

facebook - 如何使用 sails.js 访问外部 api?

c# - 使用 OAuth 连接到 Windows Azure Active Directory

authentication - Akka 验证OAuth2Async : credentials missing

swift - 从一个 View Controller 获取 Facebook 值(电子邮件、姓名等)并将它们传输到另一个 View Controller

c# - 在 .net 中获取 facebook 广告 api 错误

javascript - 在 Ajax 请求后创建 Facebook 分享按钮

Node.JS google oauth2 代理失败

facebook - publish_actions 权限错误

python - 无法使用 Pinterest API Oauth 进行授权