0

Possible Duplicate:
how to get email of friends list using twitter api on iphone app.

Hi all, i am try to write app to get friends list of user on twitter, when user login twitter on my app. I use twiiter api, but i can't do it. Please help me with the problem. Thanks so much!

Community
  • 1
  • 1
Huy Dong
  • 1
  • 2

2 Answers2

3

If your Twiiter Api has this MGTwitterEngine.h file.Look for getFollowersIncludingCurrentStatus method which give the list of your followers.

Use this Delegate Method from XAuthTwitterEngineDelegate

-(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier
{
mFollowerArray  =   nil;
mFollowerArray  =   [userInfo retain];
}
Naveen Thunga
  • 3,675
  • 2
  • 24
  • 31
Anand
  • 2,086
  • 2
  • 26
  • 44
  • I just use getFollowersIncludingCurrentStatus following: str =[_engine getFollowersIncludingCurrentStatus:YES]; NSLog(str); and str = CF5C7892-A9B4-42E2-97B4-F9CD09879D0E; i don't understand it. Please let me know it. Thanks you! – Huy Dong Apr 27 '11 at 03:55
  • So now are you getting your followers list. – Anand Apr 27 '11 at 03:58
  • Use this delegate -(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier { mFollowerArray = nil; mFollowerArray = [userInfo retain]; } – Anand Apr 27 '11 at 04:03
  • Thanks you, i will try success with -(void)userInfoReceived. but i can't get email account of people in mFollowerArray. Can you help me? – Huy Dong Apr 27 '11 at 06:45
  • Emails are restricted.Only if your followers provide all access then you can use it. – Anand Apr 27 '11 at 09:02
  • Beware this only return 100 followers. – Teo Choong Ping Apr 28 '11 at 01:54
  • Hello Anand I use getFollowersIncludingCurrentStatus and getUserInformationForEmail and its returns A212D011-6347-4D0B-BD62-6DC28CB288C8 , CDC19091-B463-48F4-9380-2CF9416A18A3 but i don't understand so please tell me what is this? – Nikunj Jadav Aug 23 '11 at 11:35
0

Sounds like you need to be sending a GET statuses/friends request to the Twitter API.

For more information, you might want to read through that documentation I linked to, or re-ask your question here with more specific details about the problem you're having.

Brian Willis
  • 22,768
  • 9
  • 46
  • 50
  • I know GET statuses/friends request but i don't know how to use it. Can you give me a sample code for it? I want to get friends list and fill it into UITableView. Thanks you! – Huy Dong Apr 27 '11 at 04:00