2

我正在尝试使用 FBWebDialogs 共享本地 UIImage。但是我得到了任何可以使用 FBWebDialogs 共享本地图像的解决方案。谁能告诉我,如何使用 FBWebDialogs 共享本地 UIImage ?注意:我的 iOS 应用完全是本地的。所以我无法获取图片网址。

这是我的代码

    -(void)shareInformationUsingFeedDialogWithParameters:(NSDictionary*)params
{
    [FBWebDialogs presentFeedDialogModallyWithSession:nil
                                           parameters:params
                                              handler:
     ^(FBWebDialogResult result, NSURL *resultURL, NSError *error)
     {
         if (error)
         {
             [self showAlertWithTitle:@"Error" andMessage:@"An error occured while sharing information using Facebook"];
         }
         else
         {
             if (result == FBWebDialogResultDialogNotCompleted)
             {
                 [self showAlertWithTitle:@"Alert" andMessage:@"You cancelled the Facebook sharing"];
             }
             else
             {
                 [self showAlertWithTitle:@"Success" andMessage:@"Facebook sharing successful"];
             }
         }
     }];
}
4

0 回答 0