Facebook的插件或小部件的朋友选择,但不要求申请 [英] Facebook plugin or widget for friends selection without application request

查看:135
本文介绍了Facebook的插件或小部件的朋友选择,但不要求申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个Facebook好友选择小部件或插件,显示了用户,用户在其中,然后选择一个或多个朋友的各界朋友的UI。称Facebook之后给我的朋友们选择id列表?

Is 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:多的朋友选择器只能发送应用程序的请求为我所知的范围内,所以这不会为我工作,因为我不希望发送应用程序请求,但只需要选定的好友ID列表。这个插件或小部件必须从我的网站工作的用户通过Facebook登录的连接,而不是从在Facebook应用程序的画布之后。
谢谢你。

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 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.

推荐答案

你所要求的不存在,作为一个插件或小部件被Facebook提供。然而,你可以很容易建立自己的。使用JavaScript SDK可以要求使用图形API的用户朋友列表。之后,只是建立你正在寻找正常的HTML和JavaScript小部件。为了使获得全部用户朋友的要求做到以下几点:

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
});

这篇关于Facebook的插件或小部件的朋友选择,但不要求申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆