javascript - 权限对话框按钮标签是 "Go to app"而不是 "Login with Facebook"

标签 javascript facebook spring

我有一个带有“使用 Facebook 登录”按钮的页面。 (我们使用Java+Spring Social)。 如果用户单击此按钮,它会提交以下表单:/social/signin/facebook 权限对话框打开,但按钮上的标签是“转到应用程序”。我应该怎么做才能使这个标签成为“使用 Facebook 登录”而不是“转到应用程序”?我尝试了display:popup参数,但标签和它一样。

在另一个项目中,我们不使用 Spring Source。我们通过此调用进行 Fb 登录:

FB.login(
  function(response) {
    if(response.authResponse) {
      window.location = ...
    } else {
      alert(accessDeniedMessage);                                                 
    }
},{scope : REQUIRED_PERMISSIONS});

在这种情况下,权限对话框中的按钮是“使用 Facebook 登录”。

最佳答案

参见:http://developers.facebook.com/blog/post/2012/03/02/enhanced-auth-dialog-and-updates-to-permissions/

New button text

In the enhanced auth dialog, the button text will be one of four cases: "Add to Facebook", "Log in with Facebook", “Go to App”, or "Play Game". Each of these were extensively tested and showed that more specific calls to action help users better understand the auth process. As the first point of contact for an app, it’s important for the auth dialog to exhibit a great user experience.

See our Open Graph documentation to learn more about permissions and configuring the enhanced auth dialog.

关于javascript - 权限对话框按钮标签是 "Go to app"而不是 "Login with Facebook",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10893570/

相关文章:

java - Spring Integration + Spring Boot Actuator 端点未显示

ios - Facebook iOS SDK 3.1 在后续调用 FBSession openWithBehavior 时崩溃

java - SDN4 - 无法通过 id 列表找到ById

java - Spring 动态验证

javascript - D3 折线图悬停时相同的刻度给出不同的值

php - Facebook FQL——非常慢

android - 尝试在 facebook 集成中调用虚拟方法 'int java.lang.Object.hashCode()'

javascript - 通过算法将冗余代码优化为循环

javascript - jQuery - 悬停仅适用于每个第二个 div

javascript - 如何从 URL 填充文本区域?