开发者

Twitter share photo feature for iOS

I currently have an iOS app with facebook integration that allows users to post their photos to facebook.

I want to add twitter integration as well, but I couldn't find any information about it. I read somewhere that it's now possible to upload photos directly to twitter, without an external site, such as twitpic.

Does twitter provide an iOS API in the same manner that facebook provides their APIs?

I looked over ShareKit, but it has tons of features that I don't need and the workflow of uploading a photo is customiz开发者_Python百科ed in my app. Worst case, I'll copy-paste some code from ShareKit, but I'm not sure it even has the ability to share a photo to twitter.


Twitter doesn't provide it's own photo sharing API. You have to upload your photos somewhere (on your own server, twitpic, etc.) and get the link and post the photo's link along with the tweet text.

I haven't used twitpic before but it looks like they have their own API that you can check out here.

If you're uploading them to your own server, you should use bit.ly's api to shorten the URL's of the photo links to provide more tweet text space. Info on bit.ly's API is here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜