我尝试使用应用程序在Facebook中共享文本。我能够登录,但是当我尝试共享文本时
ios - 使用FBSDKShareLinkContent无法在iOS 9中共享文本-LMLPHP

一旦我单击确定,一切都消失了,我仍在设备中登录Facebook应用,仍然要求登录

#import <FBSDKShareKit/FBSDKShareKit.h>

  FBSDKShareLinkContent *content1 = [[FBSDKShareLinkContent alloc] init];
    content1.contentURL = [NSURL URLWithString:@"http://en.wikipedia.org/wiki/Facebook"];

    content1.contentDescription=content;
    content1.contentTitle=@"Hello";
   // content1.imageURL=imageURL;
    [FBSDKShareDialog showFromViewController:self withContent:content1 delegate:nil];

得到这个日志
plugin com.apple.share.Facebook.post invalidated

最佳答案

一切正常。

-(IBAction)shareAction:(id)sender

{

    FBSDKShareLinkContent *content1 = [[FBSDKShareLinkContent alloc] init];
    content1.contentURL = [NSURL URLWithString:@"http://en.wikipedia.org/wiki/Facebook"];
    content1.contentTitle=@"Share";
    [FBSDKShareDialog showFromViewController:self withContent:content1 delegate:nil];
}

10-08 06:04