SHARE
TWEET

Untitled

a guest Jun 27th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $response = $fb->get('conv-id','auth-token');
  2.      
  3. <?php
  4.     require_once ('C:/Users/koran/vendor/autoload.php'); // change path as needed
  5.     /* PHP SDK v5.0.0 */
  6.     /* make the API call */
  7.     try {
  8.       // Returns a `FacebookFacebookResponse` object
  9.       $response = $fb->get( //<-- Error
  10.         '/converstationid',
  11.         'auth'
  12.       );
  13.     } catch(FacebookExceptionsFacebookResponseException $e) {
  14.       echo 'Graph returned an error: ' . $e->getMessage();
  15.       exit;
  16.     } catch(FacebookExceptionsFacebookSDKException $e) {
  17.       echo 'Facebook SDK returned an error: ' . $e->getMessage();
  18.       exit;
  19.     }
  20.     $graphNode = $response->getGraphNode();
  21.     /* handle the result */
  22. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top