FaceBook登录后获取 用户昵称

 [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:nil] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
                     OSLog(@"CHKELSE --------------- user : %@",result);
                     NSDictionary *resultDict = (NSDictionary *)result;
                     NSString *userName = resultDict[@"name"];
                     
                     // 悬浮窗支付按钮使用
                     DataSupplier *dataSupplier = [DataSupplier sharedDataSupplier];
                     dataSupplier.payUserName = userName;
                     
                 }];

 

posted on 2016-07-19 17:40  iOS学习-文  阅读(1452)  评论(0编辑  收藏  举报

导航