Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As of now (<a href="https://developers.facebook.com/blog/post/2013/06/26/october-2013-platform-changes/" rel="nofollow noreferrer">as per the latest Facebook API</a>) posting to friends wall using the Graph path is removed. Only way we can share the image of friends wall is using the Feed Dialog method</p> <pre><code>-(void)postToFriendsWall{ NSMutableDictionary *dictionary = [[NSMutableDictionary alloc]init]; NSString *greetingMessage = [self greetingTextView].text; // Set the Friends ID here in dictionary [dictionary setObject:fbUserDAO.uID forKey:@"to"]; // Add Link attributes [dictionary setObject:@"www.github.com" forKey:@"link"]; //[dictionary setObject:@"ADD_CAPTION" forKey:@"caption"]; [dictionary setObject:@"Go for Git" forKey:@"name"]; [dictionary setObject:@"A repository for all..." forKey:@"description"]; NSString *imageURL = @"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png"; // embedded action along with Like, Comment and Share NSString *actionsString = [[NSString alloc]initWithFormat:@"[{'name': 'Show Card', 'link': '%@'}]",imageURL]; [dictionary setObject:actionsString forKey:@"actions"]; [dictionary setObject:imageURL forKey:@"picture"]; [self showFeed:dictionary]; } </code></pre> <p>And then present a feed dialog using the Below code</p> <pre><code>-(void)showFeed:(NSDictionary *)paramDict{ [FBWebDialogs presentFeedDialogModallyWithSession:[FBSession activeSession] parameters:paramDict handler: ^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { for (UIView *currentView in self.tabBarController.selectedViewController.view.subviews) { if ([currentView isKindOfClass: [LoadingView class]]) { [currentView removeFromSuperview]; } } if (error) { NSLog("An error"); } } </code></pre> <p>Below is the feed dialog output(<a href="https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png" rel="nofollow noreferrer">Image link</a> you wish to post on your friends wall)</p> <p><img src="https://i.stack.imgur.com/XzJxD.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload