0
我嘗試通過對話框在FB上發佈。在FBDialog中未顯示縮略圖圖像在IOS中共享
但是我的照片沒有顯示爲對話框中的縮略圖。 當我發佈時,圖像顯示在Web上,但未顯示在對話框中。
我的代碼如下:
FBShareDialogParams *params = [[FBShareDialogParams alloc] init];
params.link = [NSURL URLWithString:[Dict objectForKey:@"url"]];
params.name = [Dict objectForKey:@"name"];
params.caption = [Dict objectForKey:@"dicription"];
params.picture=[NSURL URLWithString:@"https://s3-us-west-2.amazonaws.com/appicon/facebook-share-logo.png"];
params.description = [Dict objectForKey:@"dicription"];
if ([FBDialogs canPresentShareDialogWithParams:params])
{
/*
[FBDialogs presentShareDialogWithLink:params.link
name:params.name
caption:params.caption
description:params.description
picture:params.picture
clientState:nil
handler:^(FBAppCall *call, NSDictionary *results, NSError *error)
{
if(error)
{
// An error occurred, we need to handle the error
// See: https://developers.facebook.com/docs/ios/errors
//NSLog(@"%@",[NSString stringWithFormat:@"Error publishing story: %@", error.description]);
}
else
{
// Success
//NSLog(@"result %@", results);
}
}];
}
我也參考這個鏈接:Same Issue
但依然沒能解決。
幫我解決這個問題。
感謝您的回覆!但我正在使用Native應用程序的對話框。 – user2893370