0

I want my app to share something in Facebook with this code. When I am done sharing or cancelled sharing. Then it returns to my ViewController embedded in a NavigationController.

The Back bar button item disappears(somehow hidden) but still functions on all View Controllers. ,

I am using SWRevealViewController.

This is my code to present the FB share dialog:

FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentTitle = @"K&D Running App";
content.imageURL = [NSURL URLWithString:imageUrl];
content.contentDescription = [self getStringPost];
content.contentURL = [NSURL URLWithString:webUrl];
[FBSDKShareDialog showFromViewController: self
                             withContent:content
                                delegate:nil];
0m3r
  • 12,286
  • 15
  • 35
  • 71
  • FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; content.contentTitle = @"K&D Running App"; content.imageURL = [NSURL URLWithString:imageUrl]; content.contentDescription = [self getStringPost]; content.contentURL = [NSURL URLWithString:webUrl]; [FBSDKShareDialog showFromViewController: self withContent:content delegate:nil]; – Ariel Dominic Cabanban Cabanag Jul 06 '16 at 03:19
  • Possible duplicate of [Modal View with Navigation Controller](http://stackoverflow.com/questions/3479231/modal-view-with-navigation-controller) – CodeBender Jul 06 '16 at 03:29

0 Answers0