我正在遵循以下 Facebook Connect 教程:
https://developers.facebook.com/docs/mobile/android/build/
并尝试允许我的用户通过 Facebook 登录。现在,我已成功渲染权限请求/登录框,但根据谷歌翻译,语言是印度尼西亚语。我在 FB 应用程序设置中看不到可以更改此设置的地方,在 FB-Connect 源中也没有看到可以更改此设置的地方。我不仅尝试过具有定制 ROM 的 Inspire 4g,还尝试过原装 Galaxy Tab。
有人遇到过这种情况吗?
编辑:此外,该应用程序正在尝试 SSO(单点登录),即它使用已安装的 Facebook 应用程序进行授权,因此我不能只添加区域设置到 API URL 的末尾,因为它没有使用它们。如果用户没有安装 Facebook,我需要这样做,但现在我正在尝试让 SSO 正常工作。
以下是调用 FB 应用程序的 FB API 中的相关代码部分。我想我需要在某个地方请求我的特定区域设置:
private boolean startSingleSignOn( Activity activity, String applicationId, String[] permissions, int activityCode )
{
boolean didSucceed = true;
Intent intent = new Intent();
intent.setClassName( "com.facebook.katana", "com.facebook.katana.ProxyAuth" );
intent.putExtra( "client_id", applicationId );
/** perhaps here, I need to add to the Intent? **/
if( permissions.length > 0 )
{
intent.putExtra( "scope", TextUtils.join( ",", permissions ) );
}
// Verify that the application whose package name is
// com.facebook.katana.ProxyAuth
// has the expected FB app signature.
if( !validateActivityIntent( activity, intent ) )
{
return false;
}
mAuthActivity = activity;
mAuthPermissions = permissions;
mAuthActivityCode = activityCode;
try
{
activity.startActivityForResult( intent, activityCode );
}
catch( ActivityNotFoundException e )
{
didSucceed = false;
}
return didSucceed;
}
最佳答案
这看起来像是 Facebook 的问题:
Facebook Authorize App dialog displayed using incorrect locale
关于java - Facebook 连接 - 安卓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10520172/