Ios 如何获取Facebook用户的验证状态
我下载了HelloFacebookSample,使用Facebook SDK for iOS从用户帐户中检索已验证的状态 我试图用下面的方法从用户实例中检索。但它似乎没有定义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
在那里 如何检索已验证的状态
- (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”]);
}
我使用此项获得空值。我们需要添加任何额外的登录权限吗?我使用此项获得空值。我们需要添加任何额外的登录权限吗?