Guest User

Untitled

a guest
Dec 12th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public function getFacebookPages()
  2. {
  3. $this->getFacebook();
  4.  
  5. $fbPage = Array();
  6.  
  7. $pages = $this->facebook->api('/me/accounts');
  8.  
  9. foreach($pages['data'] as $page){
  10. if($page['category'] != 'Application'){
  11. $fbPage[$page['id']] = $page['name'];
  12. }
  13. }
  14. return $fbPage;
  15. }
Add Comment
Please, Sign In to add comment