0
正在檢索位置amoung firstname
,gender
,photo url
,id
,但是不返回位置(即國家,城市)。任何想法爲什麼?Facebook Graph API不返回位置,爲什麼?
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
因爲您沒有要求用戶訪問其位置的權限。 – CBroe
看到這個http://stackoverflow.com/questions/28211962/get-users-location-info-using-facebook-ios-sdk-in-swift –