forum

Home / DeveloperSection / Forums / Best Way To Find a Username From a Facebook ID

Best Way To Find a Username From a Facebook ID

Takeshi Okada308220-May-2013
Hi All!

I have a Facebook user's id. How do I get their username?

Specifically, I am using a FBFriendPickerController

for (id<FBGraphUser> user in self.friendPickerController.selection) {
   NSLog(@"The Facebook User: %@", user);
}
^This outputs stuff like the name, id, first name, last name, profile photo, but it does not give the user's username.

So, in regards to FBFriendPickerController, what is the best way to get the username of a selected user?

Your help is great appreciated. 


Updated on 20-May-2013

Can you answer this question?


Answer

1 Answers

Liked By