1

现在我可以获得用户的姓名、头像、用户的电子邮件,但是当我尝试将其用于位置https://graph.facebook.com/v2.2/1234567890/location时,我收到了这条消息

{
   "error": {
      "message": "Unknown path components: /location",
      "type": "OAuthException",
      "code": 2500
   }
}
4

1 回答 1

0

resource url for user location is {id}/locations.

https://graph.facebook.com/v2.2/1234567890/locations

unfortunately , locations resource was deprecated in v2.0 or higher.accessing the above url will return

{
"error": {
  "message": "(#12) user locations API is deprecated for versions v2.0 and higher",
  "type": "OAuthException",
  "code": 12
         }
}
于 2015-03-09T07:03:29.840 回答