gpt4 book ai didi

javascript - Facebook APP [和 js api] 不显示任何 friend

转载 作者:行者123 更新时间:2023-11-30 06:59:17 24 4
gpt4 key购买 nike

我正在尝试创建一个 facebook 网络应用程序,但无法通过 facebook javascript API 获取任何 friend 。我基本上希望我的应用程序做的是,它会要求用户登录,然后在授权后,应显示他/她的所有 friend {是否使用该应用程序的天气}。

是否可以交到根本不使用该应用程序的 friend ?如果是这样,请告诉我怎么做! :)

图片:http://postimg.org/image/9r959i38n/

我的应用程序中的代码:

FB.api('/me/friends',function(res){
console.log(res.data[0].name); //just sample output
});

谢谢

最佳答案

/me/friends 现在只返回也在使用您的应用程序的 friend - https://developers.intern.facebook.com/docs/apps/changelog#v2_0_graph_api

请参阅完整文档,了解可能会解决您的问题的新 API。

关于javascript - Facebook APP [和 js api] 不显示任何 friend ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23415628/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com