使用FBSDKShareLinkContent无法在iOS中共享文本9
问题描述:
我尝试在Facebook中使用应用程序共享文本。我能够做的登录,但是当我试图共享文本得到这个 使用FBSDKShareLinkContent无法在iOS中共享文本9
一旦我点击确定每一件事情是过去了,我登录了Facebook应用程序的设备仍然要求登录
#import <FBSDKShareKit/FBSDKShareKit.h>
FBSDKShareLinkContent *content1 = [[FBSDKShareLinkContent alloc] init];
content1.contentURL = [NSURL URLWithString:@"http://en.wikipedia.org/wiki/Facebook"];
content1.contentDescription=content;
[email protected]"Hello";
// content1.imageURL=imageURL;
[FBSDKShareDialog showFromViewController:self withContent:content1 delegate:nil];
在日志
plugin com.apple.share.Facebook.post invalidated
答
- (IBAction)shareActionButton:(id)sender {
NSString *textToShare = @"Your Text to share";
NSURL *myWebsite =[NSURL URLWithString:@"Your URL"];
NSArray *objectsToShare = @[textToShare, myWebsite];
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:objectsToShare applicationActivities:nil];
[self presentViewController:activityVC animated:YES completion:nil];
}
答
得到这本是工作的罚款。
-(IBAction)shareAction:(id)sender
{
FBSDKShareLinkContent *content1 = [[FBSDKShareLinkContent alloc] init];
content1.contentURL = [NSURL URLWithString:@"http://en.wikipedia.org/wiki/Facebook"];
[email protected]"Share";
[FBSDKShareDialog showFromViewController:self withContent:content1 delegate:nil];
}
这是工作的罚款 –
没有它不工作 – Sport