【发布时间】:2017-03-07 09:23:55
【问题描述】:
正在检索firstname、gender、photo url、id 中的位置,但不返回位置(即国家、城市)。知道为什么吗?
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
【问题讨论】:
-
因为您没有向用户请求访问其位置的权限。
标签: ios facebook facebook-graph-api localization