File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2929 ***************************************************************/ 
3030
3131use  League \OAuth2 \Client \Provider \Exception \FacebookProviderException ;
32+ use  League \OAuth2 \Client \Provider \Exception \IdentityProviderException ;
3233use  Pixelant \PxaSocialFeed \Provider \Facebook ;
3334use  League \OAuth2 \Client \Token \AccessToken ;
3435use  Pixelant \PxaSocialFeed \Feed \Source \FacebookSource ;
@@ -317,7 +318,7 @@ public function isValidFacebookAccessToken(): bool
317318                    $ this  ->getAppId (),
318319                    $ this  ->getAppSecret ()
319320                )->getLongLivedAccessToken ($ token );
320-             } catch  (FacebookProviderException   $ exception ) {
321+             } catch  (FacebookProviderException   |  IdentityProviderException   $ exception ) {
321322                $ isValid  = false ;
322323            }
323324        }
@@ -358,7 +359,8 @@ public function getFacebookAccessTokenMetadataExpirationDate(): ?\DateTime
358359                'access_token '  => $ this  ->getAccessToken ()
359360            ]);
360361            $ this  ->getFb ($ this  ->getAppId (), $ this  ->getAppSecret ())->getLongLivedAccessToken ($ token );
361-         } catch  (FacebookProviderException   $ exception ) {
362+           
363+         } catch  (FacebookProviderException   | IdentityProviderException   $ exception ) {
362364            return  null ;
363365        }
364366
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments