$facebook->getSession(); not working. No idea why?

后端 未结 4 2248
忘了有多久
忘了有多久 2021-01-26 08:24
  \'130407366991766\',
  \'secret\' => \'**         


        
4条回答
  •  旧巷少年郎
    2021-01-26 09:23

    Facebook Change to OAuth2 and GetSession not working download new base_facebook.php and facebook.php from developers PHP Sdk and replace login procedure to:

    if( $userfb = $facebook->getUser() ){ 
       try{
            $UserProfile = $facebook->api('/me');
       }catch (FacebookApiException $e) {
          $userfb      = null;
          $UserProfile = null;
    }
    

    Is work in my site the new version can't show a fb:login-button with perms parameter :( and i can't repair

提交回复
热议问题