【发布时间】:2013-12-11 20:54:29
【问题描述】:
我想获取 Facebook 的应用用户 ID,如下所述: https://developers.facebook.com/docs/ads-for-apps/custom-audiences-for-mobile-apps/
他们给出的代码sn-p是:
[FBRequestConnection startForCustomAudienceThirdPartyID:nil
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
NSString *id = error ? nil : [result objectForKey:@"custom_audience_third_party_id"];
// Stash off this id, send it to your server, etc. Use later to construct
// a custom audience. A result of 'nil' means that either the user can't be
// identified, or they've limited ad tracking via iOS 6.
}
];
这总是为我返回错误 400。像this 这样的答案表明它需要用作更大代码段的一部分,但 Facebook 页面上没有提到这一点。
我可以只使用上面的 sn-p,还是需要围绕它实现一些东西?
【问题讨论】:
标签: ios facebook facebook-ios-sdk