2012-02-25 91 views
5

Im使用ShareKit在我的应用中发布到Twitter和Facebook。 Facebook工作正常。无法在iPhone上使用ShareKit发布到Twitter

但是,当我试图在twitter上发布消息“保存”显示,然后立即显示警告消息“错误未知错误”,并且该消息未在Twitter中发布。

任何人都可以帮助我这个。

我GOOGLE了很多,无法找出问题。

希望你的帮助。提前感谢。

我用下面的代码:

[SHK setRootViewController:self]; 
UIImage *im = [UIImage imageNamed:@"newlog.jpg"]; 
SHKItem *item = [SHKItem image:im title:[NSString stringWithFormat:@"Question: %@ \n \n Answer: %@",t.text,t3]]; 
[email protected]"The App"; 

SHKActionSheet *actionSheet1 =[SHKActionSheet actionSheetForItem:item]; 

[actionSheet1 showInView:self.view]; 

Error image

+0

您定位的是哪个iOS版本... 4? 5? – 2012-02-25 07:39:52

+0

@Cirrostratus 4 – suji 2012-02-25 07:40:08

+0

您正在检查调试控制台吗?记录框架中的所有网络回调? – 2012-02-25 07:43:08

回答

3

登录到https://dev.twitter.com/,去我的应用程序,选择您的应用程序&去设置选项卡:

enter image description here

将应用程序类型设置为读取和写入

enter image description here

现在尝试使用sharekit推文它可能工作。如果您在Twitter个人资料中启用隐私设置,那么推文也不会贴到您的墙上。

enter image description here

取消勾选(保护我的鸣叫)&尝试再次鸣叫。如果问题不在上述情况,则调试共享包代码。