Facebook共享: - “出现错误,请稍后再试”分享iTunes时链接
问题描述:
我正在使用fb图形API,当我试图分享我的应用程序的iTunes链接时FbWebDialog显示“出现错误,请稍后再试” 。Facebook共享: - “出现错误,请稍后再试”分享iTunes时链接
这里是我的代码: -
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"mayank", @"name",
@"test sharing", @"caption",
@"example", @"description",
@"https://itunes.apple.com/in/app/myApp/id12345", @"link",
nil];
// Show the feed dialog
[FBWebDialogs presentFeedDialogModallyWithSession:nil
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
//error
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
} else {
// Handle the publish feed callback
NSDictionary *urlParams = [self parseURLParams:[resultURL query]];
if (![urlParams valueForKey:@"post_id"]) {
// User cancelled.
} else {
// User clicked the Share button
NSString *result = [NSString stringWithFormat: @"Posted story, id: %@", [urlParams valueForKey:@"post_id"]];
}
}
}
}];
当我删除或更改链接参数,共享完全可以做到的。
答
使用此功能在FB上共享iTunes链接。 https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=xyz 用您的iTunes应用程序ID替换xyz。
如果您尝试使用其他链接,它是否有效? – Larme
如果您尝试分享第二次,它会张贴??。如果是这样的话,那么它在Facebook的错误..检查此网址https://developers.facebook.com/x/bugs/136768399829531/ –
不,甚至没有第二次 –