2
我想獲得用戶的朋友的頁面總像數獲取用戶喜歡伯爵
當我申請FQL一句,低於它fql explorer結果不錯。
SELECT
uid,
name,
likes_count
FROM user
WHERE uid IN (SELECT
uid1,
uid2
FROM friend
WHERE uid1=me())
但是,當我用PHP做同樣的事情它並不顯示likes_counts。
PHP代碼:
$fql= 'SELECT uid, name, likes_count FROM user WHERE uid IN (SELECT uid1, uid2 FROM friend WHERE uid1=me())';
$ret_obj = $facebook->api(array(
'method' => 'fql.query',
'query' => $fql,
'access_token'=> ''.$fbme[access_token].''
));
print_r($ret_obj);
PHP結果:
我該怎麼讓like_counts?
我們該如何從圖形API做到這一點? –