我正在从图中的Facebook登录使用FBSDKGraphRequest
用户数据..获取国家名称和时区
但不知道如何从数据中获得时区&只有国名..
我编码到现在是如下:
在结果FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:[NSString stringWithFormat:@"/%@",result.token.userID]
parameters:@{ @"fields" : @"id, name, email, first_name, hometown, last_name, location" }
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
[self handleRequestCompletionWithResult:result error:error];
}];
在这里我得到的数据.. !!!
请求Facebook的权限是什么 –
loginButton.readPermissions = @ [@“public_profile”,@“email”,@“user_friends”,@“user_hometown”,@“user_location”]; – Simmy
如果需要,我可以添加更多的权限.. !!! – Simmy