Fetching http://graph.facebook.com/514417 from the Facebook Graph API gives me the NSString @"http://www.facebook.com/mattdipasquale". How do I extract just mattdipasquale every time? Can I assume the link will be the same format every time? In that case, I could just do:
NSString *fbUsername = [[result valueForKey:@"link"] substringFromIndex:24];
That works, but it seems kinda brittle. Do you recommend a better way?
Thanks!
Matt
How about: