首页 > 解决方案 > 在 android 中的 Facebook 上的 ShareLinkContent

问题描述

我遇到了1个问题。

希望大家帮忙。

  1. 我有 1 个使用 Facebook sdk 的 android 应用程序。最近 Facebook 报告说该应用违反了政策 4.a,(如附图所示),那么接下来我应该怎么做才能修复这个错误呢?

在此处输入图像描述

  1. 我无法使用 ShareContent 分享到 facebook,因为对话框出现然后立即消失。我收到以下错误消息:

com.facebook.GraphResponse:{HttpStatus:400,errorCode:100,subErrorCode:33,errorType:GraphMethodException,errorMessage:不支持的获取请求。ID 为“17837578*******”的对象不存在,由于缺少权限而无法加载,或不支持此操作。请阅读 https://developers.facebook.com/docs/graph-api}上的 Graph API 文档

按照 Bug 日志中的路径,我使用以下函数:

GraphRequest request = GraphRequest.newMeRequest(
accessToken,
  new GraphRequest.GraphJSONObjectCallback() {
    @Override
    public void onCompleted(JSONObject object, GraphResponse response) {
      // Insert your code here
    }
});

Bundle parameters = new Bundle();
parameters.putString("fields", "id,name,email");
request.setParameters(parameters);
request.executeAsync();

那么什么是

访问令牌

在这里,如何创建它?

谢谢大家的阅读。

标签: android-facebook

解决方案


推荐阅读