# Get Values from Facebook

**URL:** https://community.brightpattern.com/t/get-values-from-facebook/325
**Category:** Uncategorized
**Created:** [February 24, 2021, 5:49am UTC](https://community.brightpattern.com/t/get-values-from-facebook/325 "2021-02-24T05:49:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![adithyasomayagi0412](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/adithyasomayagi0412/32/125_2.png) [@adithyasomayagi0412](https://community.brightpattern.com/u/adithyasomayagi0412)
#### Post date: [February 24, 2021, 5:49am UTC](https://community.brightpattern.com/t/get-values-from-facebook/325/1 "2021-02-24T05:49:37Z")

</div>

After integrating the BPCC Agent desktop with facebook in the contact form we use this function $(Contact.messengers) and this is returning a JSON Array in the Agent desktop, i am assuming this is a key value pair sort of thing? do we know how get this value one by one by Index value or hashmap something?

{“type”:“facebook”,“user\_id”:“xxxxxxxxx”,“account\_id”:"xxxxxxxxx}]

---

<div class="post-metadata">

### Author: ![adithyasomayagi0412](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/adithyasomayagi0412/32/125_2.png) [@adithyasomayagi0412](https://community.brightpattern.com/u/adithyasomayagi0412)
#### Post date: [March 1, 2021, 8:33am UTC](https://community.brightpattern.com/t/get-values-from-facebook/325/3 "2021-03-01T08:33:54Z")

</div>

We tried to get the user\_id from (Contact.messengers). We used (Contact.messengers[0].user\_id) but it still didn’t print out the user\_id value.

any thoughts?
