Instagram Graph API get public profile phone number - instagram

Happy coding for everyone!
I need to obtain the email and phone from a friend instagram public profile using the Instagram Graph API.
I am using a long live access token and only let me retrieve a couple of basic information fields but i am stuck on to query another insta public profile and get the user information.
I saw few software that lets you get a bundle of instagram phone numbers, i am trying to make that work ... after days of research still can't achieve this.
{
id: 'xxxx',
username: 'Jhon Doe'
}
This is the example of the response using user_profile scope in the query
https://graph.instagram.com/v15.0/testeridofinstaapp?fields=username&access_token=XXXXXXX

It is not possible. The API only allows you to retrieve a user's public profile information, such as their username and profile picture.
Check Instagram docs

Related

Is there a way to get Instagram public accounts stories using API

I’m trying to get any public qccount stories using instagram API. But I couldn’t find any documentation about that in the official graph website.
This is available now, but only if the user authorizes your app. The user's account would also need to be an Instagram Business Account or Creator Account's
refer this : https://developers.facebook.com/docs/instagram-api/reference/ig-user/stories/

Get Instagram data from a backend

It is possible to get data from Instagram users, like number of posts, profile photo etc from a backend service? I don't want to force my user to login into his Instagram account to get those informations.
I'm reading about Instagram new api but always it talks about oauth which implied force login vis frontend.
Thanks.
Why would Instagram give some users data, without login? Only possible option is through Instagram public APIs, using OAuth/OIDC.
You should be able to use someone else's token (... yours?) to fetch informations about users and posts.
But that will always be limited.... for example users with non public profile, you won't be able to see those, or maybe you'll loose some posts, ....

How to get full profile information using googleapis under node js?

I tried to use the googleapi#27 to get the profile information but it gave me only following fields.
{
emailAddress: 'jainshravan321#gmail.com',
messagesTotal: 2122,
threadsTotal: 2111,
historyId: '116715'
}
I tried above with this(https://developers.google.com/gmail/api/quickstart/nodejs?authuser=1) example. I need all of the fields like firstname, lastname, email address, contact number & all of the fields available in user's profile. So do you know any way by which i will be getting all of the fields of user's profile using googleapi under node js.
Users: getProfile
Gets the current user's Gmail profile.
A users gmail profile consists of
{
"emailAddress": string,
"messagesTotal": integer,
"threadsTotal": integer,
"historyId": unsigned long
}
The information you are looking for its not part of the Gmail api. The gmail api is a mail system it is not a user profile system. You should try looking into the People api or the google+ api.
People api is basically linked to google contacts so if the user has not filled in this information you wont get it back. Google+ api is linked to the google plus social media site. If the user has not set the information public for example phone number you will not be able to see it.
There is no really good way of getting this information back.
Update: after a big of googling it looks like the call for people and google+ is the same endpoint now. But the data comes from Google+ and contacts combined.

Instagram: is there a way to show friends' posts on my website?

Using the Instagram API or plugins (like Instafeed) I can show logged user's photos, but I wanna show logged user's friends' photos.
Yes, it is possible to show any public user's photos by getting public_content permission for API.
If the user's friend has private profile then you cannot access via API even if the user is approved and following the friend.
You have to get your app approved by instagram for public_content, which you may not get if your apps purpose does not meet one of the Instagram's approved use cases: https://www.instagram.com/developer/review/

Advanced Instagram-Api access for website

I am making my research for an upcoming project:
It is going to be a website you can login via your Instagram account - I need access to the user's name, profile picture and to the people he/she is following.
Is Instagram allowing a website/project to access this information?
Just in case this is a super easy question: I am not a developer and it is very hard for me to work through the Instagram developer website - I highly appreciate any help!!
Thank you very much!
Mathew
You will first need to implement the authentication part, and receive an access_token for the user. In fact you will receive user's id, username, and profile photo along with the access_token.
That was the hardest part. Then you may use the access_token to make some API calls to get information such as follows and followed-by.
You can access Name, profile photo and followers using Instagram APIs.
Here are the 2 APIs you will need:
http://instagram.com/developer/endpoints/users/#get_users
https://api.instagram.com/v1/users/1574083/?access_token=ACCESS-TOKEN
http://instagram.com/developer/endpoints/relationships/#get_users_follows
https://api.instagram.com/v1/users/3/follows?access_token=ACCESS-TOKEN

Resources