在NSJSONSerialization中转换[FBSDKAccessToken currentAccessToken]时出错

时间:2017-06-16 12:11:29

标签: ios

NSString *SocialAuthToken = [FBSDKAccessToken currentAccessToken];

NSDictionary *postContent = @{ @"LoginType" :LoginType, @"SocialAuthToken" : SocialAuthToken, @"Password" : @"123", @"Info" : DictInfo};

NSLog(@"%@",postContent);

NSData *postdata = [NSJSONSerialization dataWithJSONObject:postContent                                                            options:NSJSONWritingPrettyPrinted error:&error];

1 个答案:

答案 0 :(得分:0)

tokenString获取FBSDKAccessToken

 NSString *SocialAuthToken = [[FBSDKAccessToken currentAccessToken] tokenString];