我想要用户个人资料网址,该网址重定向到用户个人资料
API 网址:- https://graph.facebook.com/search/?q=shakira&fields=id,name,link,picture&type=user&access_token= {xyz}
得到结果:
{
"data": [
{
"id": "1087110374693765",
"name": "Vanessa Montes",
"link": "https://www.facebook.com/app_scoped_user_id/1087110374693765/",
"picture": {
"data": {
"is_silhouette": false,
"url": "https://scontent.xx.fbcdn.net/v/t1.0-1/p50x50/13516314_1081918975212905_1979454008154600349_n.jpg?oh=2bb569a97c1e9144333407640edd41eb&oe=57ED4B09"
}
}
},
最佳答案
出于隐私原因,您无法再获取指向用户个人资料的直接链接。您只能获得一个重定向到真实个人资料 URL 的链接,但这就是您所需要的。
关于javascript - 使用 facebook api 时如何获取个人资料 url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38069545/