• sachin jaiswal

    nice explanation , please post article on other social login like google and github

    • Thanks Sachin, Sure I will post new article for another social login

  • Rajesh Rathor

    Getting a fatal error,
    Facebook SDK returned an error: Access token was not returned from Graph.

    Going in else part
    if (isset($_SESSION[‘facebook_access_token’])) {
    $accessToken = $_SESSION[‘facebook_access_token’];
    } else {
    $accessToken = $helper->getAccessToken();
    }
    I print this above if and get this FATAL error,

    Fatal error: Uncaught exception ‘FacebookExceptionsFacebookSDKException’ with message ‘Access token was not returned from Graph.’ in E:xampphtdocsrkrtutorial.comfacebookloginfacebook-php-sdkAuthenticationOAuth2Client.php:230 Stack trace: #0 E:xampphtdocsrkrtutorial.comfacebookloginfacebook-php-sdkAuthenticationOAuth2Client.php(166): FacebookAuthenticationOAuth2Client->requestAnAccessToken(Array) #1 E:xampphtdocsrkrtutorial.comfacebookloginfacebook-php-sdkHelpersFacebookRedirectLoginHelper.php(255): FacebookAuthenticationOAuth2Client->getAccessTokenFromCode(‘AQDCZip2NnKFzl0…’, ‘http://rkrtutor…’) #2 E:xampphtdocsrkrtutorial.comfacebookloginfacebooklogin.php(32): FacebookHelpersFacebookRedirectLoginHelper->getAccessToken() #3 {main} thrown in E:xampphtdocsrkrtutorial.comfacebookloginfacebook-php-sdkAuthenticationOAuth2Client.php on line 230

  • adrian

    Hy, i was insert facebook login in a custom platform.. html php.. but after user is login with facebook she dosen’t have an account acces…, i need to insert user in database website ? after that she will have acces to account ?

    • In this tutorial, I have also written code to get user details like name,first_name,last_name,email,link,gender,locale,picture.

  • Rita Shelki

    hello
    , i was https://uploads.disquscdn.com/images/68775750d4c7478d66051c48db0eb199dd27483001770ee20d53955aec6ab6d5.png insert facebook login in a custom platform.. html php.. but
    after user is login with facebook she dosen’t have an account acces…, i
    need to insert user in database website ? after that she will have
    acces to account ?

    • Facebook returns user details as shown your image. You can insert those data in DB. If you want to use fb feature from this way not possible. It is only for login.

      • M. Irfan Ansari

        what we need to do for next steps?