I went to the following URL: http://developers.facebook.com/docs/reference/php/facebook-api/ I copied the first example to my server my replacing the appID and secret for my own app. When I visit the page it says "Please login" as seen in the code, when I press that button the app reloads and it keeps saying the same thing. Im logged into Facebook already but even when I press login nothing happens.
I was wondering if anyone knew what the issue is? I have the SDK files in a folder where index.php is called src, so I have edited the path to 'src/facebook.php'?
EDIT - I am getting the following error (replaced real file path). I have just found out it could be something to do with a proxy?
Error found:
FacebookApiException Object
(
[result:protected] => Array
(
[error_code] => 7
[error] => Array
(
[message] => couldn't connect to host
[type] => CurlException
)
)
[message:protected] => couldn't connect to host
[string:Exception:private] =>
[code:protected] => 7
[file:protected] => filepath/src/base_facebook.php
[line:protected] => 977
[trace:Exception:private] => Array