facebook v2.2 current_location is missing (no fql)



在 2.1 版之前,我使用以下代码使用 fql 获取用户公共信息。

"https://graph.facebook.com/fql?q=select uid,名称,current_location 来自用户,其中 uid = xxx"

然后我会从响应中解析国家、州和城市。如果没有 FQL,我们将使用指向页面的位置字段,该页面给出经度和纬度。如何在 v2.2 中获取国家/地区(名称或国家/地区代码)谢谢

可以使用/user 通过图形 API 轻松获取位置

请参阅以下链接。

https://developers.facebook.com/docs/graph-api/reference/v2.2/user

https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%3Ffields%3Dlocation&version=v2.2&

相关内容

最新更新