我有一个带有“使用 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/