无法通过 facebook api 或 FQL 检索用户信息

发布于 2024-10-07 00:57:25 字数 989 浏览 0 评论 0原文

我正在构建一个应用程序,我需要在 Facebook 群组(公共群组)中阅读所有人的教育和工作历史(如果它没有被隐私设置隐藏)。群组中的人不一定是登录我的应用程序的用户的朋友。

我知道如何获取该群组中所有人员的 Facebook ID,但无法检索某些人的教育/工作历史,即使 Facebook 上的每个人都可以看到。

例如:当我访问群组中某个人(不是我的朋友)的个人资料页面时,我能够看到他的教育/工作信息。但是,当我通过 REST API 或图形 API 或 FQL 查询时,我得到一个空值!

我尝试过以下操作:

1)https://graph.facebook.com/UID
我也通过生成访问令牌尝试了上述方法,仍然只得到一个空值

2) https://api.facebook.com/method/users.getInfo?uids=UID&fields=education_history

3) https://api.facebook.com/method/fql.query?query=SELECT %20education_history%20from%20user%20WHERE%20uid%20%3D%20UID

这是我得到的 JSON 响应: [ { “教育历史”:空 } ]

对于如何阅读此信息的任何帮助,我将不胜感激。

I am building an app in which I need to read education and work history of all people(if it is not hidden by privacy settings) in a facebook group(public group). People in the group need not necessarily be friends of the user logged in to my app.

I know how to get the facebook IDs of all people who are part of the group but am unable to retrieve the education/work history of some people even though it is made visible to everyone on facebook.

For eg: when I visited the profile page of a person on the group(who is not my friend), I was able to see his eduaction/work info. However, when I query through rest API or graph API or FQL, I get a null value!!

I have tried the following:

1) https://graph.facebook.com/UID
I tried the above by a generating an access token too, still got only a null value

2) https://api.facebook.com/method/users.getInfo?uids=UID&fields=education_history

3) https://api.facebook.com/method/fql.query?query=SELECT%20education_history%20from%20user%20WHERE%20uid%20%3D%20UID

This is the JSON response I get:
[
{
"education_history": null
}
]

I would greatly appreciate for any help on how I can read this information.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

深陷 2024-10-14 00:57:25

由于其他用户的隐私设置和 Facebook 的限制,您不能这样做。

You can not do this because of privacy settings of the other users and the restrictions of facebook.

┼── 2024-10-14 00:57:25

在阅读任何教育信息之前,您需要请求 user_education_history 和friends_education_history 权限。查看 Facebook 的示例

You need to request user_education_history and friends_education_history permitions before you read any education info. Look at example from Facebook.

我是有多爱你 2024-10-14 00:57:25

如果该用户不允许向其他人读取他的信息,那么您无论如何也无法读取他的信息。

如果他向所有人分享自己的信息,那么 Lex 编写的权限应该足以获取此信息,无论他是否登录、是否是朋友。

在应用程序的情况下,当用户将其添加到他的页面上时,他还授予应用程序读取其一般信息的权限,因此您可以获得具有必要权限的应用程序 access_token 并读取您需要的有关应用程序成员的任何信息。

If this user not allow to read his info to others, You will not able to read his info anyway.

If he shares own info to everyone, the permissions Lex wrote whould be anougth to get this info, dont matter logged he or not, friend or not.

In case of application, when user add it on his page, he gives also the permissions to application to read his general info, so you can get application access_token with nessesary permissions and read any info you need about your application members.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文