facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.95k forks source link

FacebookResponseException : 无法加载网址: 这个 URL 的域名未包含应用的域名。为了能够加载 URL,请在应用设置的应用域名字段添加应用的所有域和子域 #1158

Closed chenxinlong closed 4 years ago

chenxinlong commented 4 years ago

facebook graph SDK throw a FacebookResponseException while call $helper->getAccessToken()。 Exception msg as below :

FacebookResponseException : 无法加载网址: 这个 URL 的域名未包含应用的域名。为了能够加载 URL,请在应用设置的应用域名字段添加应用的所有域和子域

According to the exception message, this may be a setting problem. But this exception doesn't happen every time.

This issue may related to #983 . But I still couldn't find a solution to solve it both on Facebook issue tracker or stackoverflow。

aszx0413 commented 4 years ago

同样遇到这个问题,请问解决了吗

chenxinlong commented 4 years ago

暂时没有解决。貌似翻qiang去访问 facebook 才会遇到这个问题,海外用户则不会遇到这个问题。

Shimingli commented 3 years ago

我也遇到了 https://m.facebook.com/v3.1/dialog/oauth?client_id=2883855415159978&state=rau9nu0va44c0aqlndaqvcim9u&redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&scope=email&response_type=token&auth_type=rerequest&ret=login&fbapp_pres=0&logger_id=fc72b707-cd7a-4fd0-b17d-fb73c60c6e80&tp=unspecified&_rdr