public static function FB($strCall, $arrParams = array(), $strMethod = 'GET')
 {
     //if(!is_null(MFBAuthDriver::User())){
     $arrParams['access_token'] = MFBAuthDriver::User()->OAuthToken;
     //}
     return MLCFBDriver::FB($strCall, $arrParams, $strMethod);
 }
 public static function Init($strFBAppId = null, $strFBAppSecret = null)
 {
     if (is_null($strFBAppId)) {
         $strFBAppId = FB_APP_ID;
     }
     if (is_null($strFBAppSecret)) {
         $strFBAppSecret = FB_APP_SECRET;
     }
     if (is_null(self::$objFacebook) || self::$objFacebook->getAppId() != $strFBAppId) {
         self::$objFacebook = new Facebook(array('appId' => $strFBAppId, 'secret' => $strFBAppSecret, 'cookie' => true));
     }
 }
 public static function FB($strCall, $arrParams = null)
 {
     MLCFBDriver::Init(__FB_APP_ID__, __FB_APP_SECRET__);
     if (!is_null(self::$strAccessTokenOverride)) {
         if (is_null($arrParams)) {
             $strMethod = MLCFBDriver::GET;
         } else {
             $strMethod = MLCFBDriver::POST;
         }
         $arrParams = array();
         $arrParams['access_token'] = self::$strAccessTokenOverride;
         return MLCFBDriver::FB($strCall, $arrParams, $strMethod);
     } else {
         return MLCFBDriver::FB($strCall, $arrParams);
     }
     /*	
     		if(!is_null(self::$strAccessTokenOverride)){
     			SFB::SetAccessToken(self::$strAccessTokenOverride);		
     		}else{
     			SFB::SetSignedRequest(self::$arrFBData);
     		}
     		return SFB::Call($strCall, $arrParams);*/
 }