gpt4 book ai didi

android - 获取我 friend 的所有 facebook ids/name

转载 作者:行者123 更新时间:2023-11-29 20:56:15 25 4
gpt4 key购买 nike

我已经尝试使用下面的代码,如果添加旧的 facebook sdk 它工作正常但是新的 sdk 我只得到应用程序上的 friend 。我怎样才能得到新 sdk 中所有 friend 的列表? .我真的很感谢任何帮助。在此先感谢。:

new Request(
MainActivity.facebook.getSession(),
"/me/friends",
null,
HttpMethod.GET,
new Request.Callback() {
@Override
public void onCompleted(Response response) {
/* handle the result */

Toast.makeText(activity, response.toString(), 5).show();

}
}
).executeAsync();

最佳答案

简短的回答:你不能。

从 v2.0 开始,出于隐私原因,您只能获取授权您应用程序的 friend 。 App 不应该知道任何不使用该 App 的人。

如果你想要名字来标记它们,有taggable_friends .如果您想邀请他们,请使用 invitable_friends .但是请查看文档了解它们的局限性。

关于android - 获取我 friend 的所有 facebook ids/name,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27629655/

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