Facebook login problem

Im trying to add facebook login to my website. i tested it out on localhost and works great however here on infinityfree i get error 500 and when i debug that error i get:

Facebook\Exceptions\FacebookSDKException: Could not resolve host: graph.facebook.com in /home/vol15_5/epizy.com/epiz_33759093/htdocs/vendor/facebook/graph-sdk/src/Facebook/HttpClients/FacebookCurlHttpClient.php:73
Stack trace:
#0 /home/vol15_5/epizy.com/epiz_33759093/htdocs/vendor/facebook/graph-sdk/src/Facebook/FacebookClient.php(216): Facebook\HttpClients\FacebookCurlHttpClient->send(‘htt.ps://graph.f…’, ‘GET’, ‘’, Array, 60)
#1 /home/vol15_5/epizy.com/epiz_33759093/htdocs/vendor/facebook/graph-sdk/src/Facebook/Authentication/OAuth2Client.php(277): Facebook\FacebookClient->sendRequest(Object(Facebook\FacebookRequest))
#2 /home/vol15_5/epizy.com/epiz_33759093/htdocs/vendor/facebook/graph-sdk/src/Facebook/Authentication/OAuth2Client.php(226): Facebook\Authentication\OAuth2Client->sendRequestWithClientParams(‘/oauth/access_t…’, Array)
#3 /home/vol15_5/epizy.com/epiz_33759093/htdocs/vendor/facebook/graph-sdk/src/Facebook/Authentication/OAuth2Client.php(166): Facebook\Authentication\OAuth2Client->requestAnAccessToken(Array)
#4 /home/vol15_5/epizy.com/epiz_33759093/htdocs/vendor/facebook/graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php(228): Facebook\Authentication\OAuth2Client->getAccessTokenFromCode(‘AQAWdezIEp5m8XV…’, ‘htt.ps://getsu.p…’)
#5 /home/vol15_5/epizy.com/epiz_33759093/htdocs/login.php(28): Facebook\Helpers\FacebookRedirectLoginHelper->getAccessToken()
#6 {main}

like something is blocking that request. Im not really sure if its a hosting problem or something with my code…

btw i have full ssl via cloudflare.

1 Like

I checked the issue and this is indeed a problem on our end. I think this isn’t intentional, so I’ve asked iFastNet to fix this.

6 Likes

Thanks for quick reply!
Please let me know if they will be able to fix it or not.

The issue has now been fixed! Access to the Facebook API should now work for all sites hosted with us.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.