Rnk Jangir
Rnk Jangir

Reputation: 741

Facebook Profile url from id

To generate user's profile from id, which is the right way in following?

  1. http://facebook.com/profile.php?id=ID Working but for some users, getting error "Profile Unavailable Sorry, this profile is not available at the moment. Please try again shortly."

  2. http://www.facebook.com/ID Working but not sure if it will work for all users

Is there any robust way to do this, with graph api or any other way?

Upvotes: 4

Views: 3417

Answers (2)

Iain Simmons
Iain Simmons

Reputation: 370

www.facebook.com/ID works for any Facebook Graph API Object, including users, pages, posts, photos and videos.

e.g.

Upvotes: 2

Ibrahim
Ibrahim

Reputation: 847

http://www.facebook.com/ID is the new way, and it works for all IDs I have used. profile.php is the old way (when FB URLs didn't use to be clean) and its still supported, but /ID should always work.

Upvotes: 1

Related Questions