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.