Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何获取Facebook用户的验证状态_Ios_Xcode_Facebook Graph Api_Ios6_Xcode4.6 - Fatal编程技术网

Ios 如何获取Facebook用户的验证状态

Ios 如何获取Facebook用户的验证状态,ios,xcode,facebook-graph-api,ios6,xcode4.6,Ios,Xcode,Facebook Graph Api,Ios6,Xcode4.6,我下载了HelloFacebookSample,使用Facebook SDK for iOS从用户帐户中检索已验证的状态 我试图用下面的方法从用户实例中检索。但它似乎没有定义 在那里 如何检索已验证的状态 - (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user { // here we use helper

我下载了HelloFacebookSample,使用Facebook SDK for iOS从用户帐户中检索已验证的状态

我试图用下面的方法从用户实例中检索。但它似乎没有定义
在那里

如何检索已验证的状态

- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
                            user:(id<FBGraphUser>)user {
    // here we use helper properties of FBGraphUser to dot-through to first_name and
    // id properties of the json response from the server; alternatively we could use
    // NSDictionary methods such as objectForKey to get values from the my json object
    self.labelFirstName.text = [NSString stringWithFormat:@"Hello %@!", user.first_name];
    // setting the profileID property of the FBProfilePictureView instance
    // causes the control to fetch and display the profile picture for the user
    self.profilePic.profileID = user.id;
    self.loggedInUser = user;
}
-(无效)loginView蚀刻教育信息:(FBLoginView*)loginView
用户:(id)用户{
//在这里,我们使用FBGraphUser的助手属性点到first_name和
//来自服务器的json响应的id属性;或者我们可以使用
//NSDictionary方法,如objectForKey,用于从MyJSON对象获取值
self.labelFirstName.text=[NSString stringWithFormat:@“Hello%@!”,user.first_name];
//设置FBProfilePictureView实例的profileID属性
//使控件获取并显示用户的配置文件图片
self.profilePic.profileID=user.id;
self.loggedInUser=用户;
}
我得到了答案:

- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
                            user:(id<FBGraphUser>)user {
    // here we use helper properties of FBGraphUser to dot-through to first_name and
    // id properties of the json response from the server; alternatively we could use
    // NSDictionary methods such as objectForKey to get values from the my json object
    self.labelFirstName.text = [NSString stringWithFormat:@"Hello %@!", user.first_name];
    // setting the profileID property of the FBProfilePictureView instance
    // causes the control to fetch and display the profile picture for the user
    self.profilePic.profileID = user.id;
    self.loggedInUser = user;

    NSLog(@"userInfo %@",[user objectForKey:@"verified"]);

}
-(无效)loginView蚀刻教育信息:(FBLoginView*)loginView
用户:(id)用户{
//在这里,我们使用FBGraphUser的助手属性点到first_name和
//来自服务器的json响应的id属性;或者我们可以使用
//NSDictionary方法,如objectForKey,用于从MyJSON对象获取值
self.labelFirstName.text=[NSString stringWithFormat:@“Hello%@!”,user.first_name];
//设置FBProfilePictureView实例的profileID属性
//使控件获取并显示用户的配置文件图片
self.profilePic.profileID=user.id;
self.loggedInUser=用户;
NSLog(@“userInfo%@,[user objectForKey:@“verified”]);
}
我得到了答案:

- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
                            user:(id<FBGraphUser>)user {
    // here we use helper properties of FBGraphUser to dot-through to first_name and
    // id properties of the json response from the server; alternatively we could use
    // NSDictionary methods such as objectForKey to get values from the my json object
    self.labelFirstName.text = [NSString stringWithFormat:@"Hello %@!", user.first_name];
    // setting the profileID property of the FBProfilePictureView instance
    // causes the control to fetch and display the profile picture for the user
    self.profilePic.profileID = user.id;
    self.loggedInUser = user;

    NSLog(@"userInfo %@",[user objectForKey:@"verified"]);

}
-(无效)loginView蚀刻教育信息:(FBLoginView*)loginView
用户:(id)用户{
//在这里,我们使用FBGraphUser的助手属性点到first_name和
//来自服务器的json响应的id属性;或者我们可以使用
//NSDictionary方法,如objectForKey,用于从MyJSON对象获取值
self.labelFirstName.text=[NSString stringWithFormat:@“Hello%@!”,user.first_name];
//设置FBProfilePictureView实例的profileID属性
//使控件获取并显示用户的配置文件图片
self.profilePic.profileID=user.id;
self.loggedInUser=用户;
NSLog(@“userInfo%@,[user objectForKey:@“verified”]);
}

我使用此项获得空值。我们需要添加任何额外的登录权限吗?我使用此项获得空值。我们需要添加任何额外的登录权限吗?