michael
michael

Reputation: 3945

Facebook Graph API: Miscellaneous UserId

When exploring the Facebook Graph API, at: https://developers.facebook.com/tools/explorer The default example is get my name & id (under the assumption the browsers logged to my Facebook account). All good and I get my correct Id (facebook.com/id redirect to my profile).

So here is the thing: Exploring network traffic via developer console, I noticed some ajax have user id as url param, and the id is totally different from the previous one:

  1. Same length
  2. Much more zeros

So I tried same thing: facebook.com/new_id and same result: Redirect to my correct profile page.

How is that each user have 2 different id's?

Upvotes: 0

Views: 39

Answers (1)

C3roe
C3roe

Reputation: 96325

It’s called app-scoped user ids, see https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api

Upvotes: 1

Related Questions