0

I want to load comments from my firebase app into app

enter image description here

I have this structure enter image description here

Now I want to extract details of user: (profile picture and username) with the id highlighted in the image.

For comments I could do something like this

DatabaseReference commentsRef = FirebaseDatabase.getInstance().getReference("comments").child(video.id); 

But I couldn't find a clue on getting user details. Can you help me?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Bipin Bhandari
  • 2,694
  • 23
  • 38
  • great, and what did u try? – adolfosrs Jun 24 '16 at 12:43
  • For comments I could do something like this DatabaseReference commentsRef = FirebaseDatabase.getInstance().getReference("comments").child(video.id); But I couldn't find a clue on getting user details. – Bipin Bhandari Jun 24 '16 at 12:57
  • So do you already know how to get the user id? Do you have the user info stored in any branch of your database? – adolfosrs Jun 24 '16 at 13:01
  • 2
    Firebase Authentication doesn't have an API to query the list of users, not does it automatically store user information in the database. See http://stackoverflow.com/questions/37415863/firebase-setting-additional-user-properties – Frank van Puffelen Jun 24 '16 at 14:27

0 Answers0