0

I need any source code by which I can follow an account using MGTwitterEngine. It should be for iOS and please tell me if I can follow an account using oAuth or not.

Mat
  • 202,337
  • 40
  • 393
  • 406
Rohit Dhawan
  • 1,163
  • 1
  • 11
  • 23
  • Did you check out following post: http://stackoverflow.com/questions/4210806/twitter-api-how-to-get-a-list-of-users-that-a-twitters-user-follow-mgtwitter Kind regards, Bo – Bo. May 18 '12 at 14:07
  • thanku for u r comment but in mentioned reference link we r getting list of followers while i need to follow an twitter account and can tell me what stuff i need to do this like consumerkey,secret key,ets – Rohit Dhawan May 18 '12 at 14:12

1 Answers1

1

It is possible using the POST "friendships/create" method:

https://dev.twitter.com/docs/api/1/post/friendships/create

Have you got the MGTwitterEngine authenticated and have a init'ed version of the _engine or do you need code for this?

If you have once authenticated you simply need to call the on the MGTwitterEngine:

  • (NSString *)enableUpdatesFor:(NSString *)username; // friendships/create (follow username)

...to create a friendship.

Cheers -JM

jodm
  • 2,607
  • 3
  • 25
  • 40