Advertisement
joris

My PHP Code

Feb 26th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. require '../src/facebook.php';
  3. $facebook = new Facebook(array(
  4.   'appId'  => '339554932739xxx',
  5.   'secret' => 'acb1234def85858',
  6. ));
  7.  
  8. $pages = $facebook->api('/me/accounts');
  9.  
  10. foreach ($pages['data'] as $page) {
  11.     $page_access_token = $page['access_token'];
  12.     $page_conversations = $facebook->api('/234234234234/conversations', 'GET', array('access_token' => $page_access_token));
  13.     echo "<pre>";
  14.     var_dump($page_conversations);
  15.     echo "</pre>";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement