如何将我的iphone应用程序与twitter api集成?
答
,如果你打算在5.0以前支持的iOS版本,对MGTwitterEngine一看,http://mattgemmell.com/2008/02/22/mgtwitterengine-twitter-from-cocoa/
答
看到此链接可能是它帮助到U
https://github.com/bengottlieb/Twitter-OAuth-iPhone/
这里的一些代码
- (void)viewDidAppear: (BOOL)animated {
// Twitter Initialization/Login Code Goes Here
if(!_engine){
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
_engine.consumerKey = kOAuthConsumerKey;
_engine.consumerSecret = kOAuthConsumerSecret;
}
}
if([_engine isAuthorized])
{
[_engine sendUpdate:@"your posting data"];
}
进口authtwitterengine
答
我同意本杰,你应该尝试使用内置于iOS 5的Twitter API。以下是:http://www.peterfriese.de/the-accounts-and-twitter-framework-on-ios-5/
+0
是的,我尝试了iOS 5中的twitter框架并且工作正常 – sarath
是的,你只需要搜索。 – BoltClock
您是否尝试过在此链接上搜索? http://www.google.com – Legolas