I am using ShareKit to implement Twitter share. I have a view controller with a textview and would like to send that text to the post in ShareKit while bypassing the tweet input dialog.
SHKItem *item = [SHKItem text:[postText text]];
[SHKTwitter shareItem:item];
The code above authenticates the user if not logged in, then takes my text and populates ShareKits tweet dialog. Digging through their code has confused the heck out of me. Has anyone been able to successfully post the tweet text directly to twitter?
First, create an instance of
SHKTwitterand authorize the user:Then once the user is authorized, set up the item and send.
The
"status"custom value is specific to theSHKTwitterclass. You need to do other things toSHKItemfor it to work with other sharers. e.g. this works withSHKFacebook: