FaceBook user registration in app with several facebook applications

Emma Yeroshek
Nov 4 · 2 min read

Let’s get started with an example.

There is a company that has several applications and each application has a registration via FaceBook.

If you want to get some information about user — you could do it in such way.

raw_access_token — token that sends front to back.


When we going to each app and making a request to Facebook API it returns:

  1. for first app:

{ “id”=>”2261241304653674", “email”=> “emma.yeroshek@gmail.com” }

2. for second app:

{ “id”=>”2261239363986091", “email”=>”emma.yeroshek@gmail.com” }

So, each application returns a unique facebook_uid.

What we can do in this case?

First of all, you need to create a company for your application or associate applications with an existing company.

Links below.

Than in your code you can get a list of your applications with unique ids for current user.

In such way.

The example of output:

And you can get ids of user in different facebook apps.

So, now you can resolve it based on the current business logic of the application.

Good luck!

Link that could help you:
https://developers.facebook.com/docs/apps/for-business/

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade