开发者

How to get the list of friend_request using facebook API

How to get the list of friend_request using facebook API. For example, user A,has logged in. Use B send request of adding friends to A Now, I want to get the friend_request of user A, how to do? May the facebook g开发者_开发技巧raph API could not support the operate, yes or not?

At the same time, I would like to use FQL as below, SELECT uid_from FROM friend_request WHERE uid_to=204686 (http://developers.facebook.com/docs/reference/fql/friend_request) But, how to send the FQL to facebook server?which url? like this:https://api.facebook.com/method/fql.query?query=select .... &access_token=....format=json... yes or not? any other idea? Thank you!

Simon


If you are using Java then why not use one of available Java Facebook APIs? Let API worry about which request to send where. Currently I am using RestFB API, there are plenty of examples on their site including how to execute FQL.

UPDATE

Ok, if you have to send requests manually then sending them using URL you provided is correct. Just remember that you would need to encode your FQL query before sending it as a param (URLEncoder in java would do the trick). You can play with the queries on this page and it will show you how your request should look like and what is returned.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜