3
我正在使用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"]];
}
}
}
}];
當我刪除或更改鏈接參數,共享完全可以做到的。
如果您嘗試使用其他鏈接,它是否有效? – Larme
如果您嘗試分享第二次,它會張貼??。如果是這樣的話,那麼它在Facebook的錯誤..檢查此網址https://developers.facebook.com/x/bugs/136768399829531/ –
不,甚至沒有第二次 –