我想吸引关注者和喜欢公共页面的数量。我试试这个请求 https://graph.facebook.com/v2.9/138432502881936?fields=engagement,fan_count&access_token=access_token
然后返回结果:{
"engagement": {
"count": 9894383,
"social_sentence": "9.8M people like this."
},
"fan_count": 9894383,
"id": "138432502881936"
}
Page喜欢立即计算更改,但我无法获得关注者。有没有办法做到这一点?
答案 0 :(得分:0)
我通过使用HTTP请求找到了解决方案,而不是使用API。我只是请求页面www.facebook.com/whatever_name_of_the_page,无需登录,然后使用正则表达式检查“XXX people follow this”的匹配项。我测试了python请求包并且工作正常。