Im a little stuck. I developed a script and for some reason it is converting & in URLs to & automatically.
This is the line that is causing the issue:
$accessToken = file_get_contents('https://graph.facebook.com/oauth/access_token?client_id=' . APPID . '&redirect_uri=' . APPURL . 'callback.php&client_secret=' . APISECRET . '&code=' . $_REQUEST['code']);
And this is what the error report is returning:
[20-Jul-2010 15:47:35] PHP Warning: file_get_contents(https://graph.facebook.com/oauth/access_token?client_id=xxxxxxx&amp;redirect_uri=http://apps.facebook.com/xxxxx/callback.php&amp;client_secret=xxxxxx&amp;code=) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
in /home/pk1no/public_html/video/callback.php on line 8
The funny thing is the same script works on my Joyent dedicated, but not on my HostGator dedicated. I'm a little baffled by it.