Facebook Graph API没有返回位置,为什么?

时间:2017-03-07 09:23:55

标签: ios facebook facebook-graph-api localization

检索位置firstnamegenderphoto urlid,但不会返回位置(即国家/地区,城市)。知道为什么吗?

FBLoginView.readPermissions = ["public_profile"]
let gr2 : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id,gender,first_name,location,picture.type(large)"])
let _location = data["location"] as? String // this is nil

1 个答案:

答案 0 :(得分:0)

在从您的应用请求权限时,请在范围中添加user_location