I am attempting to create a Facebook application on Heroku with PHP. I setup the default Heroku Facebook application and delay pills work fine around the production server. I setup another application on Facebook to become the neighborhood test application and hang the URL as http://profanitytracker.localhost. I set this URL as an Apache VirtualHost and make the development app's Application ID and Secret. After I attempt to run my application in your area, I recieve an HTTP 500 error.

Here's what I see during my browser...

The website encountered an error while retrieving http://profanitytracker.localhost/?state=4109e82dd75dc7a224c2b01bbb3d2c7b&code=AQC26Ff9DZBhbT2cd4Zc-0KTNDsIooYzmEKVM_YTWxKYX3RF4V389qHBGUuH4_3PnUIOyXBYFmq7GKPK_b2bskYNLkj7aWHnOQHQI1NxmklZRCIuaUZA0nYfsEhJDDhxUmaYG0DICIRgrM_S3bWuN69VGOZSWqWlsA0ioyGh1ufa5-8Nd9LhSm6iREV54miQmgU#_=_. It may be down for maintenance or configured incorrectly.

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Listed here are the errors which come up within the Apache server log...

[Sun Jan 15 17:35:53 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in /var/www/profanitytracker/index.php on line 4
[Sun Jan 15 17:35:53 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in /var/www/profanitytracker/AppInfo.php on line 36
[Sun Jan 15 17:35:53 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in /var/www/profanitytracker/AppInfo.php on line 36
[Sun Jan 15 17:35:53 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index: code in /var/www/profanitytracker/FBUtils.php on line 75
[Sun Jan 15 17:35:54 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index:     HTTP_X_FORWARDED_PROTO in /var/www/profanitytracker/index.php on line 4, referer: http://profanitytracker.localhost/
[Sun Jan 15 17:35:54 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in /var/www/profanitytracker/AppInfo.php on line 36, referer: http://profanitytracker.localhost/
[Sun Jan 15 17:35:54 2012] [error] [client 127.0.0.1] PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in /var/www/profanitytracker/AppInfo.php on line 36, referer: http://profanitytracker.localhost/
[Sun Jan 15 17:35:54 2012] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function curl_init() in /var/www/profanitytracker/FBUtils.php on line 99, referer: http://profanitytracker.localhost/

It appears like you don't have cURL functions installed.

Operate a php_info() file and appearance for just about any reference to cURL functions.