Facebook application development

I always developed my projects using MAMP locally, and once I just uploaded everything to a live server. However, I want to integrate some FB functionality into my current project, and I believe that I am right in saying that it is not possible to fully test FB integration locally. My problem is that I do not want to release a project that I am working on until it finishes (or at least almost finishes!), By posting it on a real server. I don’t even want people to see the login screen or anything else. Is there any way that I can upload everything to my domain for testing, but not allow anyone other than me to access the site?

+2
php facebook .htaccess
Jan 08 '11 at 12:27
source share
2 answers

You can test almost everything (with fairly rare exceptions) related to FB locally.

The only exceptions that I can recall are:

  • Streaming attachments
  • Subscriptions

Btw, if there are other problems that I forgot and you are experiencing - you can create a test domain with such .htaccess in your root:

 Order deny,allow Deny from all AuthName "Password" AuthType Basic AuthUserFile /path/to/.htpasswd Require valid-user Allow from 69.63.176.0/20 Satisfy Any 

Where 69.63.176.0/20 is 69.63.176.0 - 69.63.191.255 and belongs to facebook, and .htpasswd is the password file created using the htpasswd console utility

 htpasswd -c /path/to/.htpasswd musoNic80 // and enter password after 

With this .htaccess everyone but someone with facebook IP will need to enter a valid login / pass through a basic HTTP authenticator.

Also, if you have a dynamic but your own IP address (given only to you when you logged into your pppoe session (or something you use) and after you logged in again), you can use http://no-ip.org and having your local host will be accessible externally and accessible to facebook in this way.

+1
Jan 08 2018-11-12T00:
source share

It is super easy, check localtunnel and connect the url to facebook. This will cause your computer to be connected to the network in a very limited way and close the tunnel when you do this.

http://progrium.com/localtunnel/

I'm not sure if this works on Windows, but I'm sure there is something similar there.

0
Apr 13 '12 at 19:14
source share



All Articles