Reputation: 1470
Im using ShareKit for posting to Twitter and Facebook in my app. Facebook is working fine.
But when i tried to post on twitter firstly the message "saved" is showing and then immediately the alert message" Error unknown error" is showing and the message is not get posted in twitter.
Can anyone please help me with this.
I googled a lot and cant figure out the problem.
Hope for your help.Thanks in advance.
I used the below code:
[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];
Upvotes: 5
Views: 1322
Reputation: 1897
Log in into https://dev.twitter.com/ and go to My applications, select your app & go to settings tab:
set Application Type to Read and Write
now try to tweet using sharekit it may work. If you enable privacy settings in your twitter profile then also tweets won't get posted on your wall.
Remove the check mark (Protect my Tweets) & try to tweet again. If the issue is not with above mentioned cases then debug sharekit code.
Upvotes: 3