Authentication of Facebook

Asked

Viewed 73 times

1

I’m creating an API and I’m trying to implement authentication with Faceboook. Here’s the scenario, there are 2 environments front-end and the back-end, both are in different domains. Ex:

Front:

http://meuappfront.com

Back:

http://minhaapiback.com

The Front will authenticate with the Javascript SDK and send to Back only the Token Facebook Access, which in turn will validate this Token with the PHP SDK.

My question is this::

Do I need to register an APP on Facebook for each domain? What if authenticating the Access Token on different Apps will work?

1 answer

0


You can use only one APP and in the settings inform the domains on which your APP will run.

And to answer the second question, Token does not authenticate in different Apps.

  • Hello Thiago, your answer is correct. But could you add some more details? The way the answer is, it can cause doubt when trying to do what you say.

  • Of course, one sec.

  • I had already solved with only one APP, but thanks for responding anyway.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.