How to find Full list of Facebook ID and names of Cities from Facebook Marketing API - facebook

How can I use the Facebook Ads API to find a comprehensive list of all the cities that can be targeted for ads, and what parameters should I use in my request to ensure that I receive accurate and up-to-date information?
I tested the following parameter in Facebook Graph API Explorer, and its returned an empty Result, but it displays a complete list of countries when I change location_types=['country']
search?location_types=["city"]&transport=cors&type=adgeolocation
Is there a CSV for all the geolocation details for Facebook? How can I get a List of all cities Facebook Ads GeoLocation has?

Related

Facebook api for the list of users who check in my facebook page

How can I get list of users who check in my page(location). Check in counts can get by graph api but didn't get the users details.

How can you query other user profiles using the Facebook Graph API?

I'm experimenting with getting user data from the Facebook Graph API, but so far I can only retrieve information from my own profile. Using the Graph API Explorer, I'm sending GET requests for this information:
me?fields=id,name,birthday,picture,email
How can I change this to search for other users instead of "me"? For example, I want to search for profiles of people named "John Smith" and return pictures and birthdays for each profile of this name.
You can use the Search API to search for users by name: https://developers.facebook.com/docs/graph-api/using-graph-api#search
...but there is no way to get birthdays and emails of users if they did not authorize your App. You would not be allowed to use the emails anyway, even if you would get them.

Is it possible, as business profile, to get data about followers (age,city) and post reach via Instagram API?

It is possible now to get via Instagram API data like: single post reach, data about our Ads on instagram, data about our followers (age, city, country) and all data that we can see in instagram insights?
Or maybe it is possible to get Facebook user ID of our Instagram follower?
Using API you can get a post's reach - number of likes and comments.
Currently there is no API to get data about Ads. You can get followers list and their photos via API, but not their age/city/country.
No API for insights.
You cannot get facebook ID of Instagram followers.
Documentation for Instagram API is here, it shows whats possible currently:
https://www.instagram.com/developer/endpoints/

fetching list of friends using facebook 2.0

is there any way to fetch list of friends using facebook 2.0 API?
I was reading this upgrade from the API and it seems it is quite difficult to fetch the friends now,
but I have seen 2 permissions
read_friendlist
user_friends
Is their any way to fetch list of friends? and what about the widgets that get friends from facebook, will they go down?
In v2.0 of the Graph API /me/friends returns the user's friends who also use the app. You need to be granted the user_friends permission in order to get even app-using friends.
There is no way in v2.0 to get the full user's friends.
However, you may use the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends API or the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends APIs to get all the user's friends with tokens than can be used for tagging and inviting.
the read_friendlist perm doesn't get you a list of the user's friends, it gets you the list of a user's friendlists which may be used to build a custom privacy selector when publishing stories to Facebook.
As of 4/30/2014, you can only retrieve the friends who also use the app.
There are, however, specific methods for apps in the 'Game' category for inviting friends.
https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/

Get friends who visited a certain country from Facebook graph

I'm trying to use the Facebook graph api to get a list of friends who have visited a certain country, like the result from the facebook graph search friends that have been to ...
The solution I have found is to get all of their locations using me/friends?fields=locations.fields(place),picture&limit=5, and then filter out those who have been to a certain country. The problem with this is that the response time is very long (2s for 5 friends!).
How can I get a list of friends who have been to a certain country, without having to request all of their locations?