Graph returned an error: Can't Load URL: The domain of this URL isn't included in the app's domains

Added domain in App Domains, Valid OAuth redirect URIs also added.. but, Getting error message like this I have done my best... Anybody help me... it was quite irritating, I'm loosing my patience and getting panic. I really don't know, what is my big mistake in this. See this following images to know more about my problem


We have 3 ways to fix it

1) Turn Off

Use Strict Mode for Redirect URIs

in Facebook Login-> Settings


$accessToken = $helper->getAccessToken();


$accessToken = $helper->getAccessToken('');

3) This is fine for development purpose when you don't want to waste time, for production use

require_once __DIR__ . '/vendor/autoload.php';

$fb = new Facebook\Facebook([
  'app_id' => 'appid',
  'app_secret' => 'app secret',
  'default_graph_version' => 'v2.6 ', 
$helper = $fb->getRedirectLoginHelper();
$permissions = ['email']; // optional

$loginUrl = $helper->getLoginUrl('', $permissions);
try {
  $accessToken = $helper->getAccessToken('');
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  // When Graph returns an error
  echo 'Graph returned an error: ' . $e->getMessage();
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  // When validation fails or other local issues
  echo 'Facebook SDK returned an error: ' . $e->getMessage();

From march the strict mode will be forced as enable. If you have any query parameters to your redirect url they should be included in the state parameter.

For details check my answer to a similar post.

Need Your Help

What is percent of authorship in TortoiseSVN statistics?

svn tortoisesvn

In statistics section of TortoiseSVN, there is something called percent of authorship. What is this? How is this calculated? and how can it be useful?

Change font size depending on resolution

jquery html css screen-resolution

I'm developing a Web page that uses different sizes for its different paragraphs, h... and so on. I'm using em sizes: font-size: 2em;, as an example. But when I change my screen resolution to a low...