Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用facebook graph API v3.2从其他用户获取数据_Facebook_Facebook Graph Api_Userid - Fatal编程技术网

使用facebook graph API v3.2从其他用户获取数据

使用facebook graph API v3.2从其他用户获取数据,facebook,facebook-graph-api,userid,Facebook,Facebook Graph Api,Userid,我想知道是否有可能获得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 'US

我想知道是否有可能获得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\u id
可以在这个API调用中使用,所以我认为这是可能的(可能不是)

我在其他帖子中提到,过去你可以通过用户名访问,但现在不行。也许,你只能访问你的个人资料


感谢并为我的英语感到抱歉。

不,您不能通过API访问任何人的个人资料数据,即使这些数据在网站或官方应用程序上公开显示


用户需要显式登录到您的应用程序,并授予其访问其数据的权限。这些权限不能代表其他人授予-您想要了解任何信息的每个用户都必须亲自进行此操作。

如果我在facebook上有一个“页面”,我可以获取有关该页面的信息吗?感谢对于您具有管理员访问权限的页面,您可以使用页面访问令牌获取有关这些页面的信息。对于普通的公共页面,您需要先查看应用程序的“页面公共内容访问”功能,