Set Up a Local Facebook Development Environment with Virtual Host .
To create a facebook application http://www.londatiga.net/it/how-to-create-facebook-application-with-php-for-beginner/ , you need a real domain for Canvas URL. For that reasons I have faced a real trouble to develop Facebook application . I have to change the code on the local machine, uploading them to the server, testing it out in a browser and repeating the process until finish the application. So Even a little change i have to do all above the process . So i am looking for the best way to set up facebook development Environment in local to avoid all irritating process .And finally i found out of box solution at the leevio . Here i describe the out of box solution .
Create Only Virtual Host :
1. Just only create a virtual host in the localmachine according to you canvas domain name.That’s it nothing need to do more . It will save all of your effort and time Like you set canvas url “myfbapps” .
Here is the instruction to create a virtual hosts at ubuntu . But you can create virtual host for any os
1. Open a new file and write down the server configuration
Server configuration:
<VirtualHost *:80> DocumentRoot /www/ myfbapps ServerName local.myfbapps.com # Other directives here </VirtualHost>
2. Then save the file to /etc/apache2/sites-available. Give it a name like myfbapps
3. And then edit the file hosts under etc directory : /etc/hosts
4 . Open terminal and type the following command or copy and paste it.
sudo a2ensite smronju //change smronju to your file name.
5. Now you have restart your apache server the following command.
sudo /etc/init.d/apache2 restart
Few more reference link :
http://www.facebook.com/note.php?note_id=382450211283
This is a good way of setting up a FB dev environment. I usually just create a separate folder under the root level of my web server, but this can get quite messy (especially when hosting multiple apps on the same server)
@McMahon Yeah to use virtual host is bit more easy process. And it makes faster to develop the application.
Adil Rahman
Certainly one of many challenges which people starting a new on-line company face is that of acquiring guests to their internet site.
Wonderful site.Plenty of useful information here.I’m sending it to several friends ans also sharing in delicious.And of course, thanks for your sweat!
I抣l right away grab your rss as I can’t find your email subscription link or newsletter service.Do you’ve any? Kindly let me know so that I could subscribe.Thanks