Where can I find my Firebase reference URL in Firebase account?

Saif ali Karedia picture Saif ali Karedia · Oct 21, 2016 · Viewed 52.7k times · Source

In the third last line of the below code, how can I find the firebase URL. I am not able to find it. Can anyone provide me the best link on how to setup firebase facebook login with android.

public void saveUser() {
    //Add YOUR Firebase Reference URL instead of the following URL
    Firebase myFirebaseRef = new Firebase("https://androidbashfirebase.firebaseio.com/"); //<---- How to find this
    myFirebaseRef = myFirebaseRef.child("users").child(getId());
    myFirebaseRef.setValue(this);
}

Answer

Waqas Ahmed Ansari picture Waqas Ahmed Ansari · Oct 21, 2016

You should have done searching by yourself first. Here you are,

  1. Open Firebase Console

enter image description here

  1. Select your app, and go to database, marked is the url you need.

enter image description here

For UPDATED UI

Follow the below steps to get it in new UI of Firebase Console:

  1. Go to Database section
  2. Tap Cloud Firebase (marked 1 in picture) and select Realtime Database
  3. Marked 2 is the URL

enter image description here