I am creating an app on my work’s server, which is using SVN. It’s a real pain in the ass to commit & deploy every time I want to test something, instead of just being able to use my localhost environment.
Which I am sure is a possibility, I just can’t find it. That leading to my question:
How do I set up my app so I can test on my localhost, and still use Facebook Social Graph/OAuth?
You can set up a server alias in your apache config like this:
Then add the host to your hosts file:
This will route all your requests to your-site.com to localhost. I use this method for developing Facebook apps, pages and external sites that need to be on the auth domain I’ve set up in Facebook.