react-native-instagram-login icon indicating copy to clipboard operation
react-native-instagram-login copied to clipboard

How to get user profile(name, profile picture)

Open rjravijoshi111 opened this issue 6 years ago • 5 comments

I m using the latest version but I m getting a success response with this data

{"access_token":"IGQVJXVE15WEpxY2ZAlSkldfsfcxqV3M3NWVhVmZAMb2NrT29WcWZAIU3FWWjdoUUNaU0tRTjsdasdhYZATVHVmxQOWlBMnVJejRkbGss9iZAmxDTHN3aUp4SEdOTmZAYa0pBT3RTb0ZAPenpOcGo2asdUXVxdDczasdaQUxlUTQ3QkhFZA1ktTkNFN2RfNWJv","user_id":178xxxxxxxxxx}

but I need the user's name and profile picture, so could you please help me how to get this information

rjravijoshi111 avatar Jan 23 '20 18:01 rjravijoshi111

After you get the token you just need to use Instagram Graphapi https://developers.facebook.com/docs/instagram-api/

slauzinho avatar Jan 23 '20 21:01 slauzinho

@slauzinho I have to use Instagram graph API but in there I have got the only username. I m using this API https://graph.instagram.com/${data.user_id}?fields=${'id,username'}&access_token=${data.access_token}

But I need the user's full name, profile image.

rjravijoshi111 avatar Jan 24 '20 04:01 rjravijoshi111

Can I make this API call with this node module: GET
"https://graph.facebook.com/v3.2/17841405309211844?fields=business_discovery.username(bluebottle){followers_count,media_count,media{comments_count,like_count}}&access_token={access-token}"

Dhanraj-bidchat avatar Feb 13 '20 09:02 Dhanraj-bidchat

After you get the token you just need to use Instagram Graphapi https://developers.facebook.com/docs/instagram-api/

Yeah I have used that API but it shown 'Invalid OAuth access token.' error and error code:190

SrinivasanKannan18 avatar Apr 29 '20 10:04 SrinivasanKannan18

@slauzinho I have to use Instagram graph API but in there I have got the only username. I m using this API https://graph.instagram.com/${data.user_id}?fields=${'id,username'}&access_token=${data.access_token}

But I need the user's full name, profile image.

Any update on this ? I am still looking for solution. I am unable to get user's profile picture, email and full name.

AdeelMughal avatar Oct 30 '21 10:10 AdeelMughal