[英]is there a way to get user''s all friends profile pictures without using access_token?
For example, can I use the following method to get any user's friends? 例如,我可以使用以下方法来获取任何用户的朋友吗? what should the access_token field be?
access_token字段应该是什么?
$friends = json_decode(file_get_contents('https://graph.facebook.com/user_id/friends?access_token=...'),true);
Is it possible to create a php page that when we only input a user's id or name without logging into the user's account, it returns all his/her friends' profile pictures automatically? 是否可以创建一个php页面,当我们仅输入用户的ID或名称而不登录用户的帐户时,该页面会自动返回其所有朋友的个人资料图片?
Thanks! 谢谢!
Q:is there a way to get user''s all friends profile pictures without using access_token? 问:是否可以在不使用access_token的情况下获取用户所有朋友的个人资料图片?
A: programatically - NO (else you may still use standard facebook webpage) 答:以编程方式-否(否则,您仍然可以使用标准的Facebook网页)
Q: what should the access_token field be? 问:access_token字段应该是什么?
A: you gain it when you login to facebook using graph api - it is related to the user and the application (AppID) specified during login. 答:使用图形API登录到Facebook时,您会获得它-它与登录期间指定的用户和应用程序(AppID)有关。
Q:Is it possible to create a php page that when we only input a user's id or name without logging into the user's account, it returns all his/her friends' profile pictures automatically? 问:是否可以创建一个php页面,当我们仅输入用户的ID或名称而无需登录该用户的帐户时,该页面会自动返回其朋友的所有个人资料图片?
A: Yes, but such user have to permit to your facebook user and your application to retrieve such data. 答:是的,但是该用户必须允许您的facebook用户和您的应用程序检索此类数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.