Unable to post to Twitter on iPhone using ShareKit

I use ShareKit to publish on Twitter and Facebook in my application. Facebook is working fine.

But when I tried to post to twitter, the message “saved” is displayed first, and then the warning message “Error of unknown error” appears immediately, and the message is not sent on Twitter.

Can anyone help me with this.

I searched a lot and can not understand the problem.

I hope for your help. Thanks in advance.

I used the code below:

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

SHKActionSheet *actionSheet1 =[SHKActionSheet actionSheetForItem:item];

[actionSheet1 showInView:self.view];

Error image

+5
source share
1 answer

Log in to https://dev.twitter.com/ and go to My Applications, select your application and go to the settings tab:

enter image description here

enter image description here

sharekit, . Twitter, .

enter image description here

( ) . , sharekit.

+3

All Articles