所以我使用来自 facebook graph-api 的以下端点来获取特定的帖子数据:
https://graph.facebook.com/v2.2/ {post-id}?access_token=XXX
但是,它给了我以下错误:
{
error: {
message: "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
type: "GraphMethodException",
code: 100
}
}
这是为什么呢?我正在根据他们的 documentation 做同样的事情!
最佳答案
我忘记在我的 Activity 中添加以下代码,添加后对我有用。
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
callbackManager.onActivityResult(requestCode, resultCode, data);
super.onActivityResult(requestCode, resultCode, data);
}
关于facebook - GraphMethodException Facebook API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31249815/