我想问一下如何从这个查询中检索出like_count?
https://graph.facebook.com/fql?q=SELECT%20like_info%20FROM%20photo%20WHERE%20object_id=447876785249920
结果是
{"data": [
{
"like_info": {
"can_like": false,
"like_count": 2318,
"user_likes": false
}
}
] }
我只想拥有该特定照片的like_count。
答案 0 :(得分:0)
您可以在查询中使用它:
1. SELECT uid2 FROM friend WHERE uid1 = me() 2. SELECT uid FROM page_fan WHERE page_id='PAGE_ID' AND uid IN ( SELECT uid2 FROM friend WHERE uid1 = me() ) 3. SELECT first_name, last_name, pic_big FROM USER WHERE uid IN( SELECT uid FROM page_fan WHERE page_id='PAGE_ID' AND uid IN ( SELECT uid2 FROM friend WHERE uid1 = me() ) )
有关详细信息,请访问以下链接: http://www.leftjoin.net/2011/03/getting-list-of-user-friends-who-like-some-page/
答案 1 :(得分:0)
FQL查询选择喜欢计数
SELECT like_info.like_count FROM photo WHERE object_id='your photo id'