0

想象一下这种情况,我在 facebook 上有 1000 多个朋友,但我希望只阅读一小部分的更新,例如:10 个密友。我怎样才能只收到这 10 个朋友的更新。我不知道如何在 Facebook 上实现这一目标。我可以使用 facebook API 来实现它吗?(Javascript、PHP、Java 等。)非常感谢!

4

1 回答 1

0

好吧,你已经标记了这个 java、php 和 javascript,但假设你有 php-sdk,你可以使用 fql 查询来检索你想要的信息

 //assuming $facebook is your php Facebook object
 $fql = url_encode('SELECT status_id, message,uid FROM status WHERE uid in(id1,id2,id3...)');
 $data = $facebook->api('/fql?q='. $fql);
 //data should now hold the response you want, though you will have to match up user names to the uid. I'm assuming you know who the top 10 friends are though and have their id

或者查看批量请求https://developers.facebook.com/blog/post/2011/03/17/batch-requests-in-graph-api/ 或 FQL 多查询 https://developers.facebook.com/文档/参考/fql/

于 2012-08-23T17:17:26.760 回答