城市是一個位置的領域,但我似乎無法找回它。任何人看到我做錯了什麼?從Facebook的圖表檢索用戶城市api
FBSDKGraphRequest(graphPath: "me/location", parameters: ["fields": "city"]).start(completionHandler: { (connection, result, error) -> Void in
let location = result as! NSDictionary
let city = location.value(forKey: "city") as! String
print(city)
})
今天學到新東西...太棒了! –