试图通过 facebook api (PHP) 获取大量 facebook 朋友
使用此 API 调用:
$friends=$facebook->api('/me?fields=friends'); $friends=$friends['friends']; $amount = count($friends); //$amount = 477
使用此 API 调用:
$params = array( 'method' => 'fql.query', 'query' => "SELECT friend_count FROM user WHERE uid =me()", ); $amount = $facebook->api($params); //$amount = 488
为什么这两个电话有区别?
什么更准确?
有没有办法克服这个问题?
谢谢