【发布时间】:2019-02-13 09:27:00
【问题描述】:
我想知道是否可以在 Facebook 中获取具有公开个人资料(显然)的用户的基本数据(姓名、帖子...)。
我尝试使用 GRAPH API 这个调用:
https://graph.facebook.com/v3.2/USER_ID?fields=id,name&access_token=access_token
当我使用我的个人资料 USER_ID 时,它会返回我的 id 和我的姓名,但是当我输入另一个用户 ID 时,它会返回此错误:
Unsupported get request. Object with ID 'USER_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api
但我在文档中提到变量 user_id 可以在此 API 调用中使用,所以我认为这是可能的(也许不是)。
我在其他帖子中提到过,过去您可以通过用户名访问,但现在不行。也许,您只能访问您的个人资料数据?
感谢和抱歉我的英语。
【问题讨论】:
标签: facebook facebook-graph-api userid