Facebook Authentication

1

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

Front:

http://meuappfront.com

Back:

http://minhaapiback.com

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

My question is:

Do I need to register a Facebook APP for each domain? What if it will work to authenticate the access Token in different APPs?

    
asked by anonymous 15.06.2016 / 16:10

1 answer

0

You can use only one APP, and in the settings, enter the domains where your APP will run.

And answering the second question, Token does not authenticate to different APPs.

    
19.10.2016 / 21:22