【问题标题】:Facebook Graph API does not return location, why?Facebook Graph API 不返回位置,为什么?
【发布时间】:2017-03-07 09:23:55
【问题描述】:

正在检索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

【问题讨论】:

标签: ios facebook facebook-graph-api localization


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多