dongling5411 2018-03-27 14:37
浏览 184
已采纳

此网址的域名未包含在应用的域中。 (子域!)

my question is the same as this:

Facebook App - The domain of this URL isn't included in the app's domains. Why?

except that my url is: http://ccc.nnn.hhh.hu

The settins on fb, "facebook login":

Client OAuth Login: ON

Web OAuth Login: ON

Valid OAuth Redirect URIs: http://ccc.nnn.hhh.hu/my.php

strict mode is ON (cannot be disabled)

At basic:

App Domains: http://ccc.nnn.hhh.hu

so, when trying to login, the facebook dialogs asks for the username and password, so far so good. And then I get an exception for this:

$fb = new Facebook\Facebook([
    'app_id' => aeaeae,
    'app_secret' => rrrrr,
    'default_graph_version' => 'v2.5'
]);

$helper = $fb->getRedirectLoginHelper();
$accessToken = $helper->getAccessToken();

and I wont get the $accessToken but the execption:

The domain of this URL isn't included in the app's domains.

  • 写回答

2条回答 默认 最新

  • douqi3913 2018-04-24 12:53
    关注

    Right, you have to upgrade the sdk to "5.6.2" to support strict mode.

    Facebook is forcing strict mode by default now, and that implies that we should use a standard redirect URL, or declare our old custom URI in the Valid Oauth redirect URIs list. See:

    https://developers.facebook.com/blog/post/2017/12/18/strict-uri-matching/

    So, apart from upgrading the sdk, you guys want to add your custom URI in the list to support legacy app flows.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?