Okay, I hate facebook now. I've been fighting with this far too long.
I'm trying to use facebook as the login for my website, similar to what's done on stack overflow actually.
I've got my application setup and I've gone through step by step the Facebook guides but can't get anywhere.
I'm using the code examples from my app dashboard:
require 'facebook-php-sdk/src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'xxxxx',
'secret' => 'xxxxx',
'cookie' => true, // enable optional cookie support
));
<div id="fb-root"></div>
<fb:login-button>Login with Facebook</fb:login-button>
This gives me a button, but as soon as I click the button it opens a new window and a blank page. any suggestions on what I'm doing wrong?
Thanks