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

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/

Related

Which Instagram API should I use to collect public data?

Does either the Instagram Basic Display API or the Instagram Graph API allow me to simply get any public user's posts/media programatically? Everywhere in the documentation it says "User data" but it feels like I can only get data of the user that got authenticated using the API. I've set up a Facebook dev account and currently spending 4th hour on calling both APIs without success. Can anyone who has used them help me clear this up?
Most likely, Instagram API Date 365, a tool I currently work for, may help you as an alternative to using Instagram Basic Display API or the Instagram Graph API because this API is created especially for scraping bulk data about posts and users.
You can get such post data as post content (text, language, list of hashtags, list of tagged users), owner ID, location ID,
engagement info, etc. Also, it is possible to download comments (selected or on a specific post) and replies to them.
You can view this for more info.

How to get number of like, share, comment of post of Facebook, Instagram and Twitter?

I am making ios and android apps and I want to get number of likes, shares, comments of any post that is posted by particular user from his/her Facebook, Instagram and Twitter accounts.
Means how can we get number of like, share, comment of the particular user's post of Facebook, Instagram and Twitter?
Does Facebook, Instagram and Twitter APIs/SDKs support this?
Please provide any reference link to achieve this.
I'm not sure about twitter or instagram API's but facebook graph API allows you to do this, given that you have the necessary permissions.
You can always check the public data, your own posts and such..if you want to have access to the data of a particular users feed/posts they will need to provide you with that permission. (user_posts in this case)
As for the total count you can retrieve it by adding .summary(1) to the end of your query ex. for likes, comments and shares.
me?fields=posts{comments.summary(1),likes.summary(1),shares}
you can also limit the number of comments/likes/shares to zero so that you retrieve only the total count per post. If that is what you want simply ad .limit(0) before the .summary(1) ex. comments.limit(0).summary(1)
Shares however are different from comments/likes/reactions, you can only retrieve the count of shares from graph API therefore you do not need to provide anything other than the "shares" query to the post to recieve that.
Cheers!

Facebook ads insights api

I need to pull all the interests in facebook ads insights like.
Using graph api I can get particular user interests but I want all the interests that are in facebook.
Is there any api to get all the interests?
No. You can't extract the full interest database of Facebook. You should use the API per interest.
You can query the api to the targeting options for a campaign and it returns all the nodes for interests.
The endpoint is:
graph.facebook.com/{api-version}/act_{ad-account-id}/targetingbrowse?limit_type=interests&acess_token={access_token}

How to get OTHER users' photos and albums with Facebook Graph API

Scenario: logged with my Facebook account and using a browser, I'm able to see some photos and albums of some users which aren't friends of mine (with a privacy setting of public or similar) and quite all their past profile photos.
For example the URL
https://www.facebook.com/<userid>/photos_all shows those photos.
I want to replicate behaviour with Graph API but GETting
https://graph.facebook.com/<userid>/photos?access_token=...
Gives me an empty data array.
Same scenario using tagged or albums instead of photos
I've tried to use site scraping but FB website uses AJAX to populate gridview of photos, so It's very difficult.
On Graph API Explorer I've requested and use an access token with all permissions and also a debug access token but I'm still unable to get other users' photos.
It's possibile to get photos of users which aren't in friend list with Facebook Graph API? Am I missing something?
For privacy reasons, it´s not possible to get the photos of OTHER users with the API. Even for the authorized user, you need the user_photos permission.
Scraping is not allowed btw: https://www.facebook.com/apps/site_scraping_tos_terms.php

How to get User info via FB Graph API

I am finding the way to get user info by using the FB Graph API.
In my app when i get my friends list it shows me 403 friends from graph API, But actually there are 408 friends in my fb account friends section, but when i rewuest by using Graph API it gives me 402 friends records only.
Is it possible that Graph API doesn't give accurate friends list?
Probably means that some of your friends have 'opted out' of their data being made available to any 3rd party apps.