I get this error:
API Error Code: 100 API Error Description: Invalid parameter Error
Message: next is not owned by the application.
in this index.php file:
<
?php
$appapikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$appsecret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
require_once 'facebook.php';
$facebook = new Facebook ($appapikey, $appsecret);
$user = $facebook->require_login();
echo $user;
?>
In the developers section, under your website, go to:
Settings > Web Site >
Site URL: http://example.com
Site Domain: example.com
This error can occur if your domain is listed as http://example.com but you are coming from http://www.example.com. The Site Domain ensures that the subdomain
wwwgets recognized properly.