Showing posts with label how to call graph api for search in facebook. Show all posts
Showing posts with label how to call graph api for search in facebook. Show all posts

Thursday, 4 June 2015

how to use graph api in facebook developers for searching

This is HOW TO USE GRAPH API FOR SEARCHING 

 

https://graph.facebook.com/search?q=ALEX&type=USER&access_token=CAAAACZAVC6ygBANUQ31su7qgtsR3UkhE4aG6ZCqSm1qvg522ZBSlHFJR9MPVMhWxAyIqHYVXmthoFzKIiQlJSOWQkbWjWAuL5WZAhEBEHzo3v42VJMtHjEsrRff6o6DZBjRoHw5Wd9M0bPQpZCb4Wmzq5zzady85W25FvHvY29lYzJN0Bps358pBE2SQZBjt2QZD 



Access Token

Access Token are two types : 1. Client Access Token(you can get by making FACEBOOK APP)
                                              2. Application Access Token




Facebook API Search Types

We support search for the following types of objects:

 GET Application Access Token  to avoid this type of error



1.
{
   "error": {
      "message": "Invalid OAuth access token.",
      "type": "OAuthException",
      "code": 190
   }
}


2.

"error": { "message": "(#200) Must have a valid access_token to access this endpoint", "type": "OAuthException", "code": 200 }


3.

{
   "error": {
      "message": "(#803) Some of the aliases you requested do not exist: me&access_token=mytokenhere",
      "type": "OAuthException",
      "code": 803
   }
}

---------------------------------------------------------------------

type this in browser url:
https://graph.facebook.com/pages or userid


https://apigee.com/about/products/api-management


1.fb api
2.simple-facebook-connect-php-example

http://www.programmableweb.com/category/all/apis?order=field_popularity

https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en