Is it possible to limit/filter FB Graph (page) requests to :
- The category (of the page)? (for instance &category=restaurant)
- The number of likes it has (minimum threshold)
- Whether it has certain properties (for instance it must have a location.city or maybe filter where location.city == "San Jose")
and is it possible to order results (for instance by number of likes descending?)
I'm using this as a starting point:
http://graph.facebook.com/search?q=california&type=page&fields=id,name,location,category
A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled.
The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields.
Resolve a 403 error: Project rate limit exceededRaise the per-user quota in the Google Cloud project. For more information, request a quota increase. Batch requests to make fewer API calls. Use exponential backoff to retry the request.
Facebook graph api returns the latest object first. and unfortunately, you cannot order the sequence of the return. API does do their best, by calculating relativity through their own logic.
There is no order by ascending or descending.
You can use FQL for some objects, but that does not applies to search.
To know if it is supported not, simply enter the url to the browser and look at the bottom paging section. Most of supported parameters are there.
http://graph.facebook.com/search?fields=id,name,location,category&q=california&limit=2&type=page
"paging": {
"next": "http://graph.facebook.com/search?fields=id,name,location,category&q=california&limit=2&type=page&offset=2&__after_id=108131585873862"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With