如果我有一个
[0] => Array
(
[id] => 364728713652547_384117421713676
[from] => Array
(
[category] => Professional services
id是facebook authorid_postid 所以链接是https://www.facebook.com/364728713652547_384117421713676
我希望在页面上像76这样的“76”。
当我使用FQL
时SELECT comment_count, like_count, share_count, click_count, total_count from link_stat where url='https://www.facebook.com/364728713652547_384117421713676'
我得到了
的结果{"data": [
{
"comment_count": 0,
"like_count": 0,
"share_count": 0,
"click_count": 0,
"total_count": 0
}]}
如果我点击标题 我重定向到一个网址,网址为:https://www.facebook.com/pages/Knowles-Gripping-Services/364728713652547?ref=stream
然后我再次使用FQL
SELECT comment_count, like_count, share_count, click_count, total_count from link_stat where url='https://www.facebook.com/pages/Knowles-Gripping-Services/364728713652547?ref=stream'
我得到了我想要的正确结果:
{"data": [{
"comment_count": 0,
"like_count": 76,
"share_count": 0,
"click_count": 0,
"total_count": 76
}]}
所以,有谁知道有没有办法在facebook api中获取'重定向页面网址'? (我不想用php和读取http头) 或者使用post_id获取like_count? 非常感谢你。