我需要用户的位置和家乡从facebook API
我有一个用户的facebook Id说1086
,并使用这个url到https://graph.facebook.com/1086?fields=id%2Cname%2Clocation
,它只返回name
和id
。我也尝试了access_token
。在access token
中,启用user_location
。我仍然没有得到结果。
https://graph.facebook.com/1086?fields=id%2Cname%2Clocation&access_token=ACCESSTOKEN
下面是代码。范围= " public_profile、电子邮件、user_location user_hometown"我希望它能帮助到你