[英]How to get the user location using url path of facebook graph?
Right now i can get the user's name,avatar,email of the user but when i try to use this for location https://graph.facebook.com/v2.2/1234567890/location im getting this message 现在我可以获取用户的名称,头像,用户的电子邮件,但是当我尝试将其用于位置https://graph.facebook.com/v2.2/1234567890/location时,我会收到此消息
{
"error": {
"message": "Unknown path components: /location",
"type": "OAuthException",
"code": 2500
}
}
resource url for user location is {id}/locations
. 用户位置的资源URL为{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 不幸的是,在v2.0或更高版本中不推荐使用locations资源。访问上述网址将返回
{
"error": {
"message": "(#12) user locations API is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.