Reputation: 30845
Is there a way to specify only a small number of FB user profiles that can login with my FB Web app? With a possibility to manage the list making FB API calls (add a user to a list or remove it).
A preferred algorithm is as follows.
I would like to avoid setting up a local DB and store allowed user ids with it. Because since v2.0
FB made it impossible to match real user id with app scoped user id.
I mean:
FB.login
and FB.api(/me)
return app scoped user id, not a real user id. And it is not the one that is stored in my local DB. And there are no means to map it with a real one. So I won't be able to distinguish a user.Is there some best practice to solve it?
Upvotes: 0
Views: 35
Reputation: 74014
I would do it like this:
Your solutions will not work, because you cannot get access to the username (john_doe) or the "real" id with the API.
Upvotes: 2