使用 FB SDK 3.6,我正在尝试捕获 FB 用户 ID 并保存到云中的 Parse 数据存储中,以构建自定义受众以进行营销。我的电话如下:
[FBRequestConnection startForCustomAudienceThirdPartyID:nil
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
NSString *uid = error ? nil : [result objectForKey:@"custom_audience_third_party_id"];
if ([uid length] > 0) {
PFObject *newInstall = [PFObject objectWithClassName:@"NewInstalls"];
[newInstall setObject:uid forKey:@"FacebookUID"];
[newInstall saveEventually]; //saves whenever user is online
}
}];
它在模拟器(v6.1)上运行良好,但是当我在设备(iPhone 5,v6.1.2)上运行时,它会进行调用,但完成处理程序永远不会运行。有什么建议么?