[英]Facebook sharing option is not available in ios 8 using an UIActivitycontroller
I have to share Text appending with the url
using the UIActivityController
. 我必须使用
UIActivityController
与url
共享附加文本。 It shows Email, twitter and other sharing. 它显示电子邮件,推特和其他共享。 But Facebook sharing is not shown.
但是未显示Facebook共享。 I have already signed in with the Facebook too.
我也已经登录了Facebook。
Here is my code. 这是我的代码。
NSString *str_link = @"www.examplelink.com";
NSArray *movieitems = [[NSArray alloc] initWithObjects:@"Check out this really cool!\n", str_link, nil];
UIActivityViewController *controller = [[UIActivityViewController alloc]initWithActivityItems:movieitems applicationActivities:nil];
[self presentViewController:controller animated:YES completion:nil];
I have fixed this adding an url
instead of adding array of strings. 我已经解决了添加
url
而不是添加字符串数组的问题。
NSURL *url = [NSURL URLWithString:str_link];
movieitems = @[[NSString stringWithFormat:@"Check out this really cool!\n"], url];
Now I have faced if I post using facebook only a link is shared. 现在,如果我使用Facebook发帖,则只能共享一个链接。 The text I added (
@"Check out this really cool!"
) is ignored. 我添加的文本(
@"Check out this really cool!"
)被忽略。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.