How can I find most shared/liked/commented post of a location (country/city) by calling facebook api - facebook

I'm looking for a way to find most shared/liked/commented facebook post of a location (country/city) by calling facebook api?
Is this possible to create through the Facebook API? I could not find how to pull information in general that many websites offer.
Any help would be greatl! Thanks

No, there is no direct possibility to do that. You can only get Pages/Places by location (Search API), read their feed (/page-id/feed), go through the posts and calculate on your own.

Related

Searching through facebook posts based on keywords Facebook API

Can I go find a user's posts and comments based on a certain keyword?
No, there is no API for that.
What you can still search for via API, is pretty limited these days. https://developers.facebook.com/docs/graph-api/advanced/#searchtypes

How to retrieve region code for Facebook Marketing API

I'm creating a campaign through Facebook Marketing API and need to specify region codes. How can I easily find these codes?
I'm planning on hard-coding these region codes, so I'm looking for a quick solution, like manually planning a Facebook ad and retrieving these codes from the URL or from a post/get action. Any hacks you know off?
Answering my own question :)
Region codes can be retrieved using Facebook Graph Explorer as follows:
search?type=adgeolocation&location_types=region&country_code=US

Viewing Shares information for a Facebook post using Facebook graph API

Im trying to use the Facebook graph api on rails to find for a specific post who shared it. Looking through the documentation and the api data it doesn't seem that this information is available for a specific post. I am able to get the likes and comments information, however not the shares.
Would anyone know whether the current Facebook Api gives that information? Thanks
Using Graph API, do a request to graph.facebook.com/POST_ID?fields=sharedposts.
Iterate through the resulting array to get the sharers' identity.
Example in Python here.

Search people by company on Facebook using API

I need to search the list of people on Facebook using the API. I know Facebook has this function but it is on the web platform. I want to take this advantage into my application so I think the API is the only way I can do it.
I also know another application can do the similar thing is the Twigmore (http://twigmore.com). They can search people by location (within its own application). Does anyone know how does they manage this?
Any advice is highly appreciated,
Thanks,
Leo
You specify location and work in the friends API call with friends_location and friends_work_history permissions
graph.faceobok.com/me/friends?fields=location,work

Facebook Questions API

Facebook has officially launched its Facebook Questions. Does anyone know if it's possible to add one of the new Facebook "Question" polls through the Graph API? If so, how?
Thank you very much
They just announced this is available on their blog. To get them, issue an HTTP GET request to the USER_ID/questions endpoint with the user_questions or friends_questions permissions.
Update: they also just announced that you can create questions now via the API.
I've searched the http://developer.facebook.com page for poll related search terms and also online. This yielded no notable results.
It's probably worth making a poll with an external website, most I'm sure are compatible with the Open Graph but will not provide the Facebook interface that you expect on Facebook itself.
This has been deprecated as of Grpah 1.0 - https://developers.facebook.com/docs/graph-api/reference/v2.0/question