Skip to content

Instantly share code, notes, and snippets.

@mikehenriquezf
Created August 29, 2012 20:22
Show Gist options
  • Save mikehenriquezf/3518369 to your computer and use it in GitHub Desktop.
Save mikehenriquezf/3518369 to your computer and use it in GitHub Desktop.
public function getFacebookPages()
{
$this->getFacebook();
$fbPage = Array();
$pages = $this->facebook->api('/me/accounts');
foreach($pages['data'] as $page){
if($page['category'] != 'Application'){
$fbPage[$page['id']] = $page['name'];
}
}
return $fbPage;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment