Facebook Api - Local development, Testserver, Liveserver ... How?
- by Thijs Kaspers
I'm working on a new website that uses the Facebook API for users to login and several implementations of the graph Api.
My workflow usually is:
Development on localhost
Development using MAMP/XAMPP or similar software
Push to server - testing domain
A team of people can test the changes for a few days to see if everything works as planned.
Push to server - live domain
Changes are live for public
Facebook uses the site URL in the appsettings and for security reasons, they will only redirect to that url... Problem is.. I have localhost and 2 different domains. How can I make this work?
Ofcourse I could edit the hostsfile, but that only fixes it for localhost.. Still no solution for the testdomain.
Please tell me this is somehow possible! I'm getting more and more depressed with the Facebook API.