简体   繁体   English

将Twitter集成到iOS应用程序的最佳方法是什么?

[英]What is the best way to integrate Twitter into an iOS app?

I didn't think i would ask such a question but i simply have no choice. 我不认为我会问这样的问题,但我别无选择。 Before asking it i've been googling and searching and trying to implement twitter with MGTwitterEngine and i have already wasted a huge amount of time, so i need an advice from people who have already dealt with Twitter in iOS apps. 在询问之前我一直在谷歌上搜索并试图用MGTwitterEngine实现Twitter,我已经浪费了大量的时间,所以我需要一些已经在iOS应用程序中处理过Twitter的人的建议。 I believe this is an appropriate question for SO. 我相信这是一个适当的问题。

Ok, all i need is to provide user with ability to simply tweet from inside my app. 好的,我只需要为用户提供从我的应用程序内部发送简单推文的功能。 It looked really easy, but in reality: 它看起来很容易,但实际上:

1) The Social Framework provided by Apple doesn't suit me because before posting to Twitter user has to be already signed into their Twitter account in Settings. 1)Apple提供的社交框架不适合我,因为在发布到Twitter之前,用户必须已经在“设置”中登录了他们的Twitter帐户。

2)Using MGTwitterEngine and SA_OauthTwitterEngine is so incredibly difficult! 2)使用MGTwitterEngineSA_OauthTwitterEngine非常困难! I've wasted the whole day to implement authorization and tweets and this is not what i need cause this functionality works on one single device (on other devices i'm not able to authorize the app) and even on this device it works just awfully. 我浪费了一整天来实现授权和推文,这不是我需要的,因为这个功能适用于一个设备(在其他设备上,我无法授权应用程序),甚至在这个设备上它只是非常有用。 If i don't get an appropriate answer to this question i will probably be forced to waste a whole week to make it work (or not work), i have no other choice. 如果我没有得到这个问题的适当答案,我可能会被迫浪费整整一周使其工作(或不工作),我别无选择。

So my question is - isn't there any other simple way to integrate Twitter into an iOS app? 所以我的问题是 - 是否有任何其他简单的方法将Twitter集成到iOS应用程序中? How did you do that? 你是怎么做到的?

iOS 5 is having built in support for twitter framework. iOS 5内置了对twitter框架的支持。

Follow this link . 点击此链接 It explains twitter integration in a great manner. 它以很好的方式解释了Twitter集成。

This is the best way to integrate twitter in iOS Apps. 是在iOS应用中集成twitter的最佳方式。

You can integrate twitter on the fly with the help of Fabric . 您可以在Fabric的帮助下动态集成twitter。

Then there is a built in framework to integrate twitter see this. 然后有一个内置框架来集成twitter 看到这个。 and aslo use DETwitter engine if you support ios 4 also. 如果你也支持ios 4,也可以使用DETwitter引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM