开发者

Retrieve total number of friends a registered user to a facebook app

开发者 https://www.devze.com 2023-01-15 23:05 出处:网络
i have a facebook app, in wich the administrator of the app needs a report of the users registered to th开发者_JAVA百科is app and one of the data i need is to get how many friends does a user register

i have a facebook app, in wich the administrator of the app needs a report of the users registered to th开发者_JAVA百科is app and one of the data i need is to get how many friends does a user registered to my app has, i was trying with fql using a query like this

$facebook->api_client->fql_query("select uid2 from friend where uid1=$userId");

but is not working, is there any other way to achieve this?


I remember the facebook API Documentation to be rather sparse with this sort of thing, but maybe you want to look into the facebook Graph API. From there, you can get registered users of your application.

Facebook 'Friends.getAppUsers' using Graph API

http://developers.facebook.com/docs/api

==EDIT==

Facebook Graph API pattern: https://graph.facebook.com/ID/CONNECTION_TYPE

If you want all the friend data from any user, you can use https://graph.facebook.com/USER_ID/friends

0

精彩评论

暂无评论...
验证码 换一张
取 消