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.
解决之道:
①升级sdk版本
②在PHP SDK中编辑 查找文件:facebook \ graph-sdk \ src \ Facebook \ Helpers \ FacebookRedirectLoginHelper.php
找到
$ redirectUrl = FacebookUrlManipulator :: removeParamsFromUrl($ redirectUrl,['state','code']);
更改为
$ redirectUrl = FacebookUrlManipulator :: removeParamsFromUrl($ redirectUrl,['state','code','enforce_https']);
这是因为重定向地址里面多出来code参数,所以我们将其删除