# Getting access to raw JSON returned from Oauth (facebook for example)

**URL:** <https://community.auth0.com/t/getting-access-to-raw-json-returned-from-oauth-facebook-for-example/55626>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [January 3, 2021, 1:17am UTC](https://community.auth0.com/t/getting-access-to-raw-json-returned-from-oauth-facebook-for-example/55626 "2021-01-03T01:17:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry.derrick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerry.derrick/32/25158_2.png) [@jerry.derrick](https://community.auth0.com/u/jerry.derrick)\
**Post date:** [January 3, 2021, 1:17am UTC](https://community.auth0.com/t/getting-access-to-raw-json-returned-from-oauth-facebook-for-example/55626/1 "2021-01-03T01:17:19Z")

</div>

I have the integration between AWS Alexa Skill, Auth0, and Facebook working and can see the JSON that is being stored as raw JSON by Auth0 for my test user, but I’m having trouble finding code samples on how to get access to the JSON attributes inside the Alexa skill.

Specifically, I want the name and email of the user (which I can see in the JSON). Can anyone point me in the direction of the API or ideally a sample of what I need to do to access them?

I’m setting the Alexa skill up using node.js (hosted mode).

Thanks

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 4, 2021, 1:55pm UTC](https://community.auth0.com/t/getting-access-to-raw-json-returned-from-oauth-facebook-for-example/55626/3 "2021-01-04T13:55:02Z")

</div>

Hi @jerry.derrick,

Welcome to the Community!

There are a few options for getting the user’s profile information. When the user authenticates, the application is issued an Access Token and ID Token.

You could decode the ID Token using a JWT verification library ([example ID token](https://jwt.io/?token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InNGOTI1TVY3UTd1YldKdkZrdjkycSJ9.eyJodHRwOi8vZGVtb3plcm8ubmV0L3JvbGVzIjpbXSwibmlja25hbWUiOiJmYWtlIiwibmFtZSI6ImZha2VAdXNlci5ub3QiLCJwaWN0dXJlIjoiaHR0cHM6Ly9zLmdyYXZhdGFyLmNvbS9hdmF0YXIvNDYwYzljMjQ1ZjFjMDAwOGU2MDEwYjhmZjllNTU4ZjY_cz00ODAmcj1wZyZkPWh0dHBzJTNBJTJGJTJGY2RuLmF1dGgwLmNvbSUyRmF2YXRhcnMlMkZmYS5wbmciLCJ1cGRhdGVkX2F0IjoiMjAyMS0wMS0wNFQxMzoxMjo0OC45NTJaIiwiZW1haWwiOiJmYWtlQHVzZXIubm90IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJpc3MiOiJodHRwczovL2Rldi1ianJlMjJubC51cy5hdXRoMC5jb20vIiwic3ViIjoiYXV0aDB8NWZmMzE0NTA3ODIzOGIwMDcxOTcyY2M0IiwiYXVkIjoiRDc1azliZWh5VVdtdWFnOGtmd2U0b2tpNm9DMHhRV28iLCJpYXQiOjE2MDk3NjU5NjksImV4cCI6MTYwOTgwMTk2OSwibm9uY2UiOiJtSFE2NWR3bTZRVHdVR2R4SXBhOERSWmZXbW5ia1Q1a20ya016dTMwVHA0In0.v_9Vqvd9Zbv8SHIORUMZlj79cLoRCs-ne_ZqAhMRox12PuHw9jTiqAm5iZOHHhGj4RtdEoAV0yGe_CzGqJYFK--DfMv9AfVipmpuFZ34MIwtBynbKFqav4EB146y1FWd-E30BfboyXPgNbFCPoiyn0F7pIpiSJeJBIhIXDER3tMn1OQqxJWg-WyiCyxgMeyCDn4yIprEjA_doUiiDhtd_UFrV9e0D8EnXaS8qFpIhsYJWrs7a5mKI8UFc3e3Ky79RQoG68vP7QhwubwC7KwZDZ7H1dKM7JuWiVg95VCITQyaOB1B6Hxp1nXzwK_0GZ2qNcxwNlVw6bcnaQBgrCX1xQ)) or you can use the Access Token to retrieve profile information using the [Authentication API](https://auth0.com/docs/api/authentication#user-profile).

If you are using the NodeJS [passport-auth0](https://github.com/auth0/node-auth0) package, then you can follow the [QuickStart’](https://auth0.com/docs/quickstart/webapp/nodejs/01-login)s example to access the profile information from `req.user`.

---

<div class="post-metadata">

**Author:** ![jerry.derrick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerry.derrick/32/25158_2.png) [@jerry.derrick](https://community.auth0.com/u/jerry.derrick)\
**Post date:** [January 4, 2021, 2:05pm UTC](https://community.auth0.com/t/getting-access-to-raw-json-returned-from-oauth-facebook-for-example/55626/4 "2021-01-04T14:05:07Z")

</div>

@stephanie.chamblee thanks for the quick reply 🙂

I’ll give it a shot.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 19, 2021, 2:05pm UTC](https://community.auth0.com/t/getting-access-to-raw-json-returned-from-oauth-facebook-for-example/55626/5 "2021-01-19T14:05:12Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
