How can I find the top 100 facebook pages with the most likes? What kind of granular options would I have with this? For example, would it be possible to qualify my query for 100 musicians, top 100 athletes, top 100 actors, etc?
You can only search for Pages by name and location, there is no way to filter by number of likes.
Search API in the docs: https://developers.facebook.com/docs/graph-api/using-graph-api#search
Related
So far I've been able to get an overview of the total number of clicks during a specified time period using the Insights API:
{"impressions":"5547","spend":"160.53","clicks":"206","date_start":"2022-06-08","date_stop":"2022-06-08"}
What I would like instead is a list of objects that represent each individual click during that period, with fields like "fbclid", "date", "spend", etc:
{"fbclid":"jg4k0tkladskds08kds","spend":"0.75", "date":"2022-06-08 12:24:15"}
{"fbclid":"098okjfesdjflsdjffd","spend":"0.72", "date":"2022-06-08 18:36:02"}
{"fbclid":"04538hjfldkjlkdjfdfsdf","spend":"0.67", "date":"2022-06-08 21:12:12"}
etc...
Is this possible with either the Insights API or something else within the Marketing API? I'm using the Facebook Business SDK for PHP in case that's relevant. Thanks!
So, Facebook is supposed to be retiring FQL... today(8.8.16).
Is there a way to make Graph API requests, with something similar to WHERE ...?
For example, in FQL, this will bring me my status-posts who got more than 10 likes (and nicely order them from top to bottom)
SELECT message, like_info FROM status WHERE uid=me() AND
like_info.like_count>10 ORDER BY like_info.like_count DESC
How will you achieve this with the Graph API only? Is it possible at all?
No, there is no way with the Graph API to do that, you would have to get all posts and do the sorting/filtering on your own. You can filter by date though, with the since and until parameters.
What is the maximum limit for fetching the facebook pages from an account?
Let's suppose if a facebook account has more than 200 pages to administer. If I try to retrieve facebook pages of that account using '/me/accounts' edge.
Then I get data as well as paging (containing cursors and next, previous page links). What I want to know is If I can set a limit while fetching the facebook pages like '/me/accounts?limit=200' and get all the 200 facebook pages the account has??
I have searched the documentation But there is no clear explanation as for this rate limit.
If you mean the API limit, it´s dynamic and not a definitive value. A general rule is "600 calls per 600 seconds, per token & per IP". You can also read this in other Stackoverflow threads, for example: What's the Facebook's Graph API call limit?
If you mean the limit parameter: Afaik they are changing it from time to time. I would not rely on it and just use the default value with paging, which is usually 25.
I am using Amazon's Product Advertising API. When I'm searching products by keyword from an item search operation I get only 10 results, is there any way to get all result in one single call?
No - Paging Through Results explains some of the details:
It is possible to create a request that returns many thousands of
items in a response. This is problematic for several reasons.
Returning all of the item attributes for those items would
dramatically impact the performance of Product Advertising API in a
negative way. Also, posting a thousand responses on a web page is
impractical.
...
This example shows that 9729 items matched the search criteria. Also,
it shows that those results are on 973 (~9729/10) pages. You might try
putting in an ItemPage value over 10. If you do, Product Advertising
API returns the following error.
...
So, how do you get that 973rd page? You cannot. A better approach is
to submit a new request that is more targeted and yields fewer items
in the response.
Currently I'm developing a custom facebook app.
Simply it will list products from companies.
For each product (10 per page) I want to not-only show the count of the companies FB page but also like to show some faces with it (ppl who like the page). My idea looks alot like the FB like box plugin though I'm unable to customize its design.
One option I came up was to fetch all friends likes (1 x per day) and only show those faces, though this could become pretty server heavy due to that there will be a couple hundred companies. Which will eventually make an easy 1000 users = 1000 * 500 queries per day.
Somehow I can't find any other way to like "scrape" like-box (just need 5 to 10 faces per listing).