我正嘗試使用他們的Facebook獲取用戶的個人資料信息,如姓名或電子郵件,但似乎沒有工作了。是否仍有可能使用ID來獲取其他用戶的帳戶信息: ?Facebook獲取用戶的個人資料信息
我得到使用Facebook SDK這個respose:
Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookAuthenticationException' with message 'Unsupported get request. Object with ID '1691918994166305' 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 ' in
/Applications/XAMPP/xamppfiles/htdocs/fizops.com/facebook/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php:106 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/fizops.com/facebook/vendor/facebook/graph-sdk/src/Facebook/FacebookResponse.php(210): Facebook\Exceptions\FacebookResponseException::create(Object(Facebook\FacebookResponse))
#1 /Applications/XAMPP/xamppfiles/htdocs/fizops.com/facebook/vendor/facebook/graph-sdk/src/Facebook/FacebookResponse.php(255): Facebook\FacebookResponse->makeException() #2 /Applications/XAMPP/xamppfiles/htdocs/fizops.com/facebook/vendor/facebook/graph-sdk/src/Facebook/FacebookResponse.php(82): Facebook\FacebookRes in /Applications/XAMPP/xamppfiles/htdocs/fizops.com/facebook/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php on line 106
使用這個網址:
https://graph.facebook.com/1777651498915121/?access_token=xxx|xxx
響應:
{ "error": { "message": "Unsupported get request. Object with ID '1777651498915121' 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 ", "type": "GraphMethodException", "code": 100, "fbtrace_id": "HYwXjUHaT8W" } }
你從哪裏得到用戶ID?它實際上是屬於你的應用程序的應用程序範圍的ID嗎? – CBroe
只是使用/我而不是用戶ID - 當然用戶訪問令牌 – luschn
我從Reamaze獲得了用戶ID,他們說我可以使用圖形api將其追溯到Facebook。 – Boy