FBSDK Share button not working for sharing on friends timeline in xcode7

334 Views Asked by At

I am using FBSDK sharebutton in my application using latest fbSDK for iOS & xcode 7,i want to share some information on friend's timeline from my app but when using FBSDK SHARE button only normal share dialog is opening with no option for sharing on friends timeline...i am using following code as per ios9 fbSDK documentation

     -(void)shareOnFriendsTimeline
{
      FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
      content.contentURL = [NSURL URLWithString:@"https://www.example.com"];
      FBSDKShareButton *shareButton = [[FBSDKShareButton alloc] init];
      shareButton.shareContent = content;  
      shareButton.center = self.view.center;
      [self.view addSubview:shareButton];
}

please tell me where i am doing wrong...thanks in advance

0

There are 0 best solutions below