Twitter分享iOS的照片功能 [英] Twitter share photo feature for iOS

查看:186
本文介绍了Twitter分享iOS的照片功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个iOS应用程序,具有Facebook集成功能,允许用户将照片发布到Facebook。

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

我也想添加Twitter集成功能,但是我不能找不到有关它的任何信息。我在某处读到,现在可以将照片直接上传到Twitter,而无需外部网站(例如twitpic)。

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.

twitter是否以与 facebook提供了他们的API

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

我查看了 ShareKit ,但是它具有大量功能不需要,并且在我的应用中自定义上传照片的工作流程。最坏的情况是,我将从ShareKit复制并粘贴一些代码,但是我不确定它是否具有将照片分享到Twitter的功能。

I looked over ShareKit, but it has tons of features that I don't need and the workflow of uploading a photo is customized 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不提供其自己的照片共享API。您必须将照片上传到某个地方(在您自己的服务器,twitpic等上),并获取链接,并将照片的链接与推文一起发布。

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.

以前没有使用过twitpic,但是看起来它们有自己的API,您可以在此处中查看。

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

如果要将它们上传到自己的服务器,则应使用bit.ly的api来缩短照片链接的URL,以提供更多的tweet文本空间。关于bit.ly API的信息,请此处

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.

这篇关于Twitter分享iOS的照片功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆