4

I'd like to implement the natvie Twitter App into my iOS Application. I've already done that with Facebook by using the URL Schemes. But I weren't able to find such thing for Twitter.

For Facebook I used:

-(IBAction)facebook:(id)sender {
       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://"]];
}

But when I try to use

@"Twitter" or @"twitter" or @"tw"

nothing happens. Would be great if you guys could help me out. I haven't found anything in the Interweb :/ If there is something just like it please :)

Thanks in advance :)

Blazer
  • 14,259
  • 3
  • 30
  • 53
Constantin Jacob
  • 488
  • 1
  • 8
  • 21
  • 1
    Nathans solution below will work, but I have to ask are you trying this on the simulator? It will only work on a real device with the twitter app installed. – Mick MacCallum May 12 '12 at 12:28

1 Answers1

18

Did you try:

twitter://

ex:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitter://user?screen_name=username"]];
Blazer
  • 14,259
  • 3
  • 30
  • 53