我正在尝试通过使用业务发现节点来获取某些业务帐户的评论。我可以通过请求加载媒体列表
获取 https://graph.facebook.com/v3.1/17841402914723639?fields=business_discovery.username(bluebottle) {followers_count,media_count,media {media_type,comments_count}}
这将返回
{
"business_discovery": {
"followers_count": 297515,
"media_count": 1317,
"media": {
"data": [
{
"media_type": "IMAGE",
"comments_count": 18,
"id": "17970528943031455"
},
{
"media_type": "IMAGE",
"comments_count": 17,
"id": "17938949563163035"
},
{
"media_type": "IMAGE",
"comments_count": 66,
"id": "17966264041064104"
},
我假设媒体条目中的ID是该对象的ID。但是当我尝试像
一样访问它时获取https://graph.facebook.com/v3.1/17970528943031455
我遇到错误
{
"error": {
"message": "Unsupported get request. Object with ID '17970528943031455' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "HbaasWNQ8ko"
}
}
是权限问题吗? 如何获取媒体评论列表?
答案 0 :(得分:0)
查询的语法是:
business-account-id?fields=business_discovery.username(bluebottle){media{comments}}
但是当我尝试出现此错误时:
{
"error": {
"message": "(#100) Please read documentation for supported fields.",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "BFuJQt0/Kt3"
}
}
所以我猜他们已经取消了对获取评论的支持。
答案 1 :(得分:0)
根据documentation:“来自创建IG Media对象的用户的访问令牌,具有以下权限:”表示您需要具有帖子所有者授予的访问权限才能访问对其评论。