title: How to configure Heroku's Facebook tutorial app to run locally with PHP?
body: <p>I am trying to run the Heroku's basic tutorial facebook application (<a href="http://devcenter.heroku.com/articles/facebook" rel="nofollow noreferrer">http://devcenter.heroku.com/articles/facebook</a>).
  Following the instructions, deploying on Heroku went fine.
  Trying to deploy locally I got the following error </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected ':' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\AppInfo.php on line 36".</p>
  </blockquote>
  
  <p>I understood there's some problem with the getHome function, found an answer to a similar problem with python here - <a href="https://stackoverflow.com/questions/7541469/problem-running-herokus-facebook-app-tutorial-with-python">Problem running Heroku&#39;s Facebook app tutorial with Python</a>, but still I am unable to figure it out how it should be done for PHP.</p>
  
  <p>I tried to changed the getHome function to just <code>return http://127.0.0.1:5000/</code> (like the Site URL I set on my facebook app) but then I get that the browser cannot connect to it.</p>
  
  <p>I have Safari 2.2 running locally, basic Hello world PHP file is running ok.</p>
  
  <p>Thanks in advance.</p>