function fb_is_page_liked in Drupal for Facebook 6.3
Same name and namespace in other branches
- 7.3 fb.module \fb_is_page_liked()
Does the current user like the current page?
Expect this to work only when fb_is_tab() returns TRUE.
File
- ./
fb.module, line 833 - This is the core required module of Drupal for Facebook.
Code
function fb_is_page_liked() {
global $_fb;
$sr = $_fb
->getSignedRequest();
return isset($sr['page']) && $sr['page']['liked'];
}