hungdev/react-native-instagram-login

How to get user profile(name, profile picture)

rjravijoshi111 opened this issue · 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

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

@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.

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

@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.