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?