[英]How should i get Facebook user friend list and their profile picture's using Graph API in PHP?
[英]Facebook - Send friend request (User to User) using graph API and PHP SDK?
所以我想知道faecebook的文档在开发人员的正式文档中没有提到它,但是我在博客上看到了图调用,但是它起作用了(这很奇怪)
https://graph.facebook.com/me/friends?method=post&uids=< USER ID>&access_token=< Acccess Token>
回应是
{
"error": {
"message": "(#200) ",
"type": "OAuthException",
"code": 200
}
}
这可能吗? 如果是,如何使用PHP SDK? 任何想法都被接受
您可以使用“ Friends Dialog
。 要集成,您可以使用javascript as-
FB.ui({
method: 'friends',
id: USER_ID
}, function(response){});
或者,URL重定向为-
https://www.facebook.com/dialog/friends/ ? id = USER_ID&app_id = APP_ID&redirect_uri = REDIRECT_URI
有关更多详细信息: 朋友对话框
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.