Q:

Publish an image with text on facebook

I would like to post a feed on facebook by using fallback share. It should contain an image and a message. I have tried soo much by changing the params
 NSMutableDictionary *postParams =
[[NSMutableDictionary alloc] initWithObjectsAndKeys:
 @"http://www.abc.com",@"link",
 self.produtObj.productImageURL, @"picture",
 self.produtObj.productName, @"name",
 self.produtObj.productDescription, @"message",
 nil];

[FBRequestConnection
 startWithGraphPath:@"me/feed"
 parameters:postParams
 HTTPMethod:@"POST"
 completionHandler:^(FBRequestConnection *connection,
                     id result,
                     NSError *error) {
     NSString *alertText;
     if (error) {
         alertText = [NSString stringWithFormat:
                      @"error: domain = %@, code = %d",
                      error.domain, error.code];
     } else {
         alertText = [NSString stringWithFormat:
                      @"Posted action, id: %@",
                      [result objectForKey:@"id"]];
     }
     // Show the result in an alert
     [[[UIAlertView alloc] initWithTitle:@"Result"
                                 message:alertText
                                delegate:self
                       cancelButtonTitle:@"OK!"
                       otherButtonTitles:nil]
      show];
 }];

With this code, the feed is displayed in a box and clicking on it is taking me to the link spcified. I just want to have an image thumbnail with the story for it not inside the box. Please help me. This is my first question in SOF. So please forgive me for my mistakes.
Thanks in advance. :)

A:

I really prefer to use the UIActivityItemViewConroller for pushing stuff up to facebook.
The user needs to be logged into facebook on their device.  You can do that through settings in the Facebook section.
I make the new controller like this for my stuff:
    NSMutableArray *stuff = [[NSMutableArray alloc]init];
    NSString *textstring = @"Now is the time for all good men to come to the aid of their country. Lorum Ipsum etc";
    UIImage *pic = [UIImage imageNamed:@"Icon-Small-50"];//A local image
    NSString *URL = @"http://nwc.co/images/nwc-icon-200.gif";//A link to an image
    [stuff addObject:textstring];
    [stuff addObject:pic];
    [stuff addObject:URL];
    UIActivityViewController *vc = [[UIActivityViewController alloc]initWithActivityItems:stuff applicationActivities:nil];

    [self.navigationController presentViewController:vc animated:YES completion:^{
        //do something here when they are done   
    }];

If you run the above, you'll notice that the text, the local image, and a link to the online image all appear on the post.
And you can exclude other activities, if you don't want to confuse people when the activity icons pop up:
vc.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypePostToTwitter, UIActivityTypePostToWeibo, UIActivityTypeMail, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll];

