title: Local Facebook Development Environment using WAMP - how to find localhost port number and work on application
body: <p>Hi I'm a newbie to web programming and am trying to build an integrated FB application in PHP.  I have already some some sample code stored on the heroku servers but for convenience I am trying to set up a local development environment and have installed WAMP (I'm running Windows 7 32-bit).  I have three questions:  </p>
  
  <p>1)  I have been following the instructions on <a href="https://devcenter.heroku.com/articles/facebook#working_locally" rel="nofollow">https://devcenter.heroku.com/articles/facebook#working_locally</a> and am in the process of setting up the developer test app.  It seems that the localhost url is always 127.0.0.1 for every machine, but how can I find out what port number to put?  Or do I simply pick a 4 digit one at random?  In another post someone specified a port for Ruby (or Ruby on Rails, I'm not sure), but I can't find any information on the port for PHP.</p>
  
  <p>2)  The guide mentions that I need to set the APP ID and APP secret as environment variables - how do I do this in WAMP?</p>
  
  <p>3)  Once I have created the test app, how do I actually go about working locally?</p>
  
  <p>Help with any of these questions is much appreciated!  Thanks in advance! </p>