Android :Facebook sdk-4. 4.1 没有默认登录按钮登录权限错误?

标签 android facebook facebook-graph-api

error image

我在没有 Facebook 登录按钮的情况下登录 Facebook,但我发现了这条注意消息:

提交登录审查以下一些权限尚未被 facebook 批准使用

这是我的代码

FacebookSdk.sdkInitialize(getApplicationContext());

    setContentView(R.layout.activity_login);
     callbackManager = CallbackManager.Factory.create();

    loginManager = LoginManager.getInstance();
  LoginManager.getInstance().logInWithReadPermissions(LoginActivity.this,Arrays.asList("user_photos"));

            loginManager.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
                @Override
                public void onSuccess(LoginResult loginResult) {


                    if (AccessToken.getCurrentAccessToken() != null) {
                        RequestData();


                    }
                }

                @Override
                public void onCancel() {

                }

                @Override
                public void onError(FacebookException exception) {
                }
            });


        }
    }); 

最佳答案

这不是错误信息,它是给开发者的。

您需要向 facebook 提交您的申请以获得额外的权限,例如访问用户照片、好友列表或在用户墙上发布内容。

查看 this , thisthis获取更多信息。

如果您使用创建应用程序的用户登录,您将不会收到此消息,一旦应用程序从 Facebook 获得批准,此消息将不会出现。

If your app asks for more than than public_profile, email and user_friends it will require review by Facebook before your app can be used by people other than the app's developers.

不需要审核的权限

Public profile (default) permissions : The default includes some basic attributes about the person, which are part of a person's public profile on Facebook. The default permissions are included as part of every permissions request, but require slightly different handling on the web and native mobile platforms.

App friends : This optional permission grants your app the ability to read a list of friends who also use your app.

Email permissions : This gives you access to the person's primary email address.

关于Android :Facebook sdk-4. 4.1 没有默认登录按钮登录权限错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35060798/

相关文章:

php - 无需用户输入的 Facebook 营销 API token

android Glide 资源已准备好但图像未显示

android - 如何在android中以编程方式格式化USB大容量存储

python - Selenium -python 元素不可点击

c++ - 如何建立facebook的抄写员?

php - URL 被阻止 : Facebook login with php sdk

java - 如何在 ScrollView 和 LinearLayout 中居中

java - Android-从customListview获取图像并在imageview中显示相同的图像,而不使用数据库

ios - 我可以为 Twitter 和 Facebook 以外的社交网络创建或使用像 SLComposeViewController 这样的 View Controller 吗

facebook-graph-api - 您可以将来自 Facebook Workplace 的提要嵌入到 iframe 中吗?