FBWebDialogs を使用してローカルの UIImage を共有しようとしています。しかし、FBWebDialogs を使用してローカル イメージを共有するソリューションを取得しています。FBWebDialogs を使用してローカルの UIImage を共有するにはどうすればよいですか? 注: 私の iOS アプリは完全にローカルです。そのため、画像の URL を取得できません。
これが私のコードです
-(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"];
}
}
}];
}