Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement