i have created a app witch are using facebook as a login opportunity. My APP worked public fine 1 day ago, but today it started getting this error when my users are logging in:
Graph returned an error: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
My code looks like this:
<?php
require 'vendor/autoload.php';
if(!session_id()) {
session_start();
}
// Setting a local setting
$fb = new Facebook\Facebook([
'app_id' => '****',
'app_secret' => '****',
'default_graph_version' => 'v2.2',
]);
// Setting up the Facebook Helper
$helper = $fb->getRedirectLoginHelper();
//Genneration FaceBook Callback Script
$loginUrl = $helper->getLoginUrl('https://gymbilletter.dk/facebook/facebook_callback.php',array('scope' => 'email'));
header("Location: ".$loginUrl);
And i have whitelisted my return domain: Facebook OAuth Rederictlinks
I have tried to search the interned for answers, but the only answers i get is to update from 5.6.1 to 5.6.2 but i am already using 5.6.3