使用hello.js获取Facebook用户配置文件链接

时间:2018-11-06 22:36:25

标签: facebook profile hello.js

我正在使用hello.js登录并获取多个社交网络的用户信息,并且可以正常工作。 我现在需要获取facebook用户个人资料链接,因此我请求了我的FB应用程序的许可权(user_link),因此,当我使用该应用程序登录时,警告我该应用程序将有权访问我的个人资料网址。 但是我不知道如何通过hello.js获取此信息,我在响应中所拥有的只是:

first_name: "Jerome"
id: "..."
last_name: "..."
name: "..."
picture: "https://graph.facebook.com/.../picture"
thumbnail: "https://graph.facebook.com/.../picture"

这是我的代码的一部分:

var socialnetwork = facebook;
var socialscopes = basic_profile;
hello(socialnetwork).login({scope: socialscopes},function() {

return hello(socialnetwork).api('me').then(function(r) {
console.log(r);
}

一个线索? THX !!!

0 个答案:

没有答案