iphone MGTwitterEngine - post a tweet with my app signature

steveY picture steveY · Jun 30, 2009 · Viewed 7.5k times · Source

I'm using MGTwitterEngine in an iPhone app, and it works great. The one thing I want to change is the "posted from MGTwitterEngine" that appears on Twitter. Obviously I'd like it to say "from MyCoolApp", and link to the app's website.

When you register an app with Twitter (http://twitter.com/oauth_clients/create), you get this info:

* Consumer key
  ***a891tcxSvL6QpEeo12g
* Consumer secret
  ***MqeRIXiWsecretAdAjCgFsBN7Lef12f3uyxJFrs
* Request token URL
  http://twitter.com/oauth/request_token
* Access token URL
  http://twitter.com/oauth/access_token
* Authorize URL
  http://twitter.com/oauth/authorize

Where do you input this information in the current release of MGTwitterEngine?

Answer

Markus Müller-Simhofer picture Markus Müller-Simhofer · Jul 2, 2009

You can find detailed information on how to do this in the Readme: http://svn.cocoasourcecode.com/MGTwitterEngine/README.txt

You mentioned that you already received your token, so the next step would be to call the method

- (void)setClientName:(NSString *)name version:(NSString *)version URL:(NSString *)url token:(NSString *)token;

on your MGTwitterEngine instance.