# Getting data from firebase real time db

**URL:** https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [August 17, 2020, 9:56am UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896 "2020-08-17T09:56:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![haroldcwh2](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@haroldcwh2](https://community.thunkable.com/u/haroldcwh2)
#### Post date: [August 17, 2020, 9:56am UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/1 "2020-08-17T09:56:42Z")

</div>

Hope to seek some directional advice as I am currently not able to get data from real time firebase.

Have set up the blocks and real time database as follows and wish to get the “meditation-msg1” and display it in screen label. However what’s displayed is " [object object] ". Many thanks in advance if any Guru can kindly advice.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/febf9c286e978a2886ebe68c41bab835ad0e7056.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fc0a5ca1d660d451159abbd165319c411c5b093c.png)

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [August 17, 2020, 10:13am UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/2 "2020-08-17T10:13:41Z")

</div>

Hi haroldcwh2,

As shown in the screenshot of your database, ‘meditation-msg1’ is actually under the key ‘000001’, that is under ‘wisdom-quotes’. Because of this you will have to reference all three of these keys in your code.

To achieve this, you will have to add a ‘join’ block from the Text blocks. Next, using text boxes input the three keys into each in the appropraite order. In your case, that is ‘wisdom-quotes’, ‘000001’ and then ‘meditation-msg1’. Next, put some forward slashs in-between the keys.

Below is a visual example:

![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/77f0dda446bf992669753fbc8613c7b5329a4e49.png)

Hope this helps 😁

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [August 17, 2020, 10:31am UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/4 "2020-08-17T10:31:18Z")

</div>

Ah thanks, my bad 😅

Updated the comment.

---

<div class="post-metadata">

### Author: ![haroldcwh2](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@haroldcwh2](https://community.thunkable.com/u/haroldcwh2)
#### Post date: [August 17, 2020, 11:59am UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/5 "2020-08-17T11:59:22Z")

</div>

Thanks everyone for the valuable advice. It’s been really helpful. Have managed to solve the get data issue via real time db following your shared tips… Super… Many thanks.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [August 17, 2020, 12:19pm UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/6 "2020-08-17T12:19:42Z")

</div>

please share your solution via screenshot or description so others may benefit from this thread.

You mark you entry as the solution, we’d love to see it.

---

<div class="post-metadata">

### Author: ![hdawc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hdawc/32/119068_2.png) [@hdawc](https://community.thunkable.com/u/hdawc)
#### Post date: [August 17, 2020, 12:21pm UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/7 "2020-08-17T12:21:29Z")

</div>

@haroldcwh2 you might want to mark the actual post that was the solution - as the actual solution, rather than your reply 😉 👍

---

<div class="post-metadata">

### Author: ![haroldcwh2](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@haroldcwh2](https://community.thunkable.com/u/haroldcwh2)
#### Post date: [August 19, 2020, 10:28am UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/8 "2020-08-19T10:28:27Z")

</div>

Good idea… Here’s the solution blocks that I eventually leaned towards:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f0ab2a90013596ae128d40694f09729f0b70d7bc.png)

Have also added a random integer generator at the tail part of the “Join” so that messages stored in firebase may be randomly shown in the App Screen each time button is clicked.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:26pm UTC](https://community.thunkable.com/t/getting-data-from-firebase-real-time-db/747896/10 "2024-11-08T12:26:41Z")

</div>


