android-facebook - 在 android 中的 Facebook 上的 ShareLinkContent
问题描述
我遇到了1个问题。
希望大家帮忙。
- 我有 1 个使用 Facebook sdk 的 android 应用程序。最近 Facebook 报告说该应用违反了政策 4.a,(如附图所示),那么接下来我应该怎么做才能修复这个错误呢?
- 我无法使用 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();
那么什么是
访问令牌
在这里,如何创建它?
谢谢大家的阅读。
解决方案
推荐阅读
- excel - 创建报告模板表并根据日期和时间填充数据
- xml - Android底部导航栏图标变形
- swift - 如果每个用户旁边都有一个赞按钮,为什么滚动触发随机用户的赞按钮被突出显示?
- javascript - 用于姓名检查的多语言字母
- javascript - 更改一个按钮的背景颜色 onClick 并将先前单击的按钮恢复为默认背景(8个按钮)
- c# - 有没有办法对android服务代码进行截图?
- c# - ASP.NET Core - 从类库中查看
- python - 使用工作表[#][#] 查找单元格值时收到单元格未找到错误
- python - Python从(多个)文件中删除行(S)
- c++ - 抑制 msbuild 编译器警告