Php 如何在graph API中检索facebook页面喜好数?返回空集的API
当我尝试使用graph api获取facebook页面喜欢数时,我无法获得任何页面喜欢数Php 如何在graph API中检索facebook页面喜好数?返回空集的API,php,facebook,facebook-graph-api,curl,php-curl,Php,Facebook,Facebook Graph Api,Curl,Php Curl,当我尝试使用graph api获取facebook页面喜欢数时,我无法获得任何页面喜欢数 GET/v2.10/{page_id}/likes返回空集 所以我试着 GEThttps://graph.facebook.com/v2.10/{PAGE_ID}?fields=ID,name,likes.summary(true),link&access_-token={access_-token} RESULT : { "id": "513727248979119", "name": "T
GET/v2.10/{page_id}/likes返回空集
所以我试着
GEThttps://graph.facebook.com/v2.10/{PAGE_ID}?fields=ID,name,likes.summary(true),link&access_-token={access_-token}
RESULT :
{
"id": "513727248979119",
"name": "Trending men's wear",
"link": "https://www.facebook.com/Trending-mens-wear-513727248979119/"
}
获取喜欢该页面的用户数。使用
fan\u count
而不是likes
。根据的文档说明,likes
和fan_count
是相同的。但是fan_count
工作正常。
所以使用
GEThttps://graph.facebook.com/v2.10/{PAGE_ID}?fields=ID,name,**fan_count**,link&access_token={access_token}
RESULT :
{
"id": "513727248979119",
"name": "Trending men's wear",
"link": "https://www.facebook.com/Trending-mens-wear-513727248979119/"
}
参考:
获取喜欢该页面的用户数量。使用
fan\u count
而不是likes
。根据的文档说明,likes
和fan_count
是相同的。但是fan_count
工作正常。
所以使用
GEThttps://graph.facebook.com/v2.10/{PAGE_ID}?fields=ID,name,**fan_count**,link&access_token={access_token}
RESULT :
{
"id": "513727248979119",
"name": "Trending men's wear",
"link": "https://www.facebook.com/Trending-mens-wear-513727248979119/"
}
参考: