/ Published in: PHP
Use this function to validate cookies set by Facebook Connect JS API
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function _validateFBConnectCookie(){ $apiKey = Configure::read('Settings.fb_api_key'); foreach($_COOKIE as $key=>$value){ $params[$paramName] = $value; } } $secret = Configure::read('Settings.fb_secret'); $str = ''; foreach($params as $key=>$value){ $str .= $key.'='.$value; } return true; } return false; }
URL: validate_facebook_connect_cookie