Where is 'profile_url'?

Jul 31, 2009 at 11:33 PM
Edited Aug 1, 2009 at 12:36 AM

Hello,

I want to get the user's FB profile page url.  Some people have usernames that show in their link, so I don't want to just concatenate their uid to the profile.php page.

From what I've seen in other API's, the 'profile_url' field is where they get this url; however, I can't find it in user_info.

 

 

Aug 1, 2009 at 12:37 AM
Edited Aug 1, 2009 at 12:38 AM

Well, I'm able to get it by this code. But is there a quicker way???

 

user info = api.users.getInfo();

for (int x = 0; x < info.Untyped.Elements().Count(); x++)

{            
        if(info.Untyped.Elements().ElementAt(x).Name.ToString().Contains("profile_url"))

            Response.Write(info.Untyped.Elements().ElementAt(x).Value+ "<br />");
}