Facebook Api - Local development, Testserver, Liveserver ... How?

Posted by Thijs Kaspers on Stack Overflow See other posts from Stack Overflow or by Thijs Kaspers
Published on 2011-11-12T17:48:14Z Indexed on 2011/11/12 17:50 UTC
Read the original article Hit count: 235

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about facebook

Related posts about api