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