Facebook plugin or widget for friends selection without application request [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionIs there a facebook friend selector widget or plugin that shows the UI for all the friends of the user, in which the user then selects one or more friends. After that facebook gives me list of ids of selected friends ?
fb:multi-friend-selector only works within the context of sending application request as for as I know, so this would not work for me because I do not want to send application request 开发者_Go百科but just needs list of ids of selected friends. This plugin or widget must work from my website after user has logged in via facebook connect and not from within facebook canvas application. Thanks.
What you are asking for does not exist as a plugin or widget provided by facebook. However, you can very easily build one yourself. Using the javascript SDK you can request the list of the users friends using the Graph API. After that just build the widget you are looking for with normal html and javascript. To make the request to get all a users friends do the following:
FB.api('/me/friends', function(response) {
// do something with the result
});
精彩评论