Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing and Testing a Facebook application

Typically I develop my websites on trunk, then merge changes to a testing branch where they are put on a 'beta' website, and then finally they are merged onto a live branch and put onto the live website.

With a Facebook application things are a bit tricky. As you can't view a Facebook application through a normal web browser (it has to go through the Facebook servers) you can't easily give each developer their own version of the website to work with and test.

I have not come across anything about the best way to develop and test a Facebook application while continuing to have a stable live website that users can use. My question is this, what is the best practice for organising the development and testing of a Facebook application?

like image 853
Andrew Wilkinson Avatar asked Sep 02 '08 12:09

Andrew Wilkinson


People also ask

How do you make a test app on Facebook?

To create a test app: Load the app that you want to clone in the App Dashboard. In the upper-left corner of the dashboard, click the app selection dropdown menu and click Create Test App. Name the app and click Create Test App.

What is development mode on Facebook?

Newly created apps are automatically set to Dev Mode by Facebook so that developers can configure and test app integrations before submitting the app for review. In Dev Mode, the app only has access to data for four app roles: Administrator, Developer, Tester and Analytics User.


2 Answers

Try updating your hosts file (for windows users @ c:\windows\System32\Drivers\etc\hosts) with an entry that will route all requests from your live domain back to your machine.

So 127.0.0.1 mywebappthatusesfacebook.com.

Then make sure that your app is running at the root of your webserver. @ http://localhost/ Then goto mywebappthatusesfacebook.com in your browser and it should redirect right back to your local machine. Facebook won't know the difference. Hope this helps

like image 58
Arron S Avatar answered Oct 10 '22 23:10

Arron S


The way I and my partner did it was we each made our own private Facebook applications, that pointed to our IP address where we worked on it. Since we worked in the same place, we each picked a different port, and had our router forward that port to our local IP address. It was kinda slow to refresh a page, but it worked very nicely.

like image 42
ryantm Avatar answered Oct 11 '22 00:10

ryantm