【问题标题】:facebook image sharing using facebook api not working with other account in android使用 facebook api 共享 facebook 图像无法与 android 中的其他帐户一起使用
【发布时间】:2016-09-21 11:32:12
【问题描述】:

在我当前的项目中,我的任务是将我们的应用程序中的图像共享到 facebook。我也在我的开发者帐户中创建了项目。

在我的应用程序图像共享中使用开发者帐户。而且我已将我的开发人员帐户设为公开。登录有效,但分享无效。

对于每次它在 registerCallback 中的 oncancel 方法。

callbackManager = CallbackManager.Factory.create();
List<String> permissionNeeds = Arrays.asList("publish_actions");


//this loginManager helps you eliminate adding a LoginButton to your UI

manager = LoginManager.getInstance();

manager.setLoginBehavior(LoginBehavior.WEB_ONLY);
manager.logInWithPublishPermissions(this, permissionNeeds);

manager.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
    @Override
    public void onSuccess(LoginResult loginResult) {
        sharePhotoToFacebook();
    }

    @Override
    public void onCancel() {
        System.out.println("onCancel");
    }

    @Override
    public void onError(FacebookException exception) {
        System.out.println("onError");
    }
});

【问题讨论】:

  • 为此您必须在 facebook 上审核您的应用,或者您可以从您的帐户添加测试人员和开发人员
  • 但在现场场景中我必须做什么?

标签: android android-studio facebook-graph-api facebook-graph-api-v2.0


【解决方案1】:

如果要向 facebook 分享任何内容,您需要将您的应用提交给 facebook 以供审核。

查看this了解更多信息。

Here 是应用审核流程的完整指南。

【讨论】:

    猜你喜欢
    • 2013-08-25
    • 2016-09-06
    • 2016-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多