Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.2 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.2 KB

fireGroupChat

This is a basic group chat widget that built with Firebase. It shows an example of how to build a simple chat application without any server side code.

Setup

Setup a localhost server for running the index.html. If you don’t already have any server, I would suggest you to install NodeJS http-server.

##Configure Firebase

  • Go to Firebase and create a new account.
  • Create a new app from your firebase dashboard.
  • Edit firegroupchat.js and replace <YOUR-FIREBASE-APP> with your firebase app to point to your firebase.

##Configure Facebook Authentication

  • Create a new facebook application.
  • Add https://auth.firebase.com/v2/<YOUR-FIREBASE-APP>/auth/facebook/callback to your Valid OAuth redirect URIs on the bottom of the Advanced tab (more info).
  • Go to your firebase account, at https://<YOUR-FIREBASE>.firebaseio.com. Click Login & Auth in the left side menu. Select the Facebook tab and check the Enable Facebook Authentication.
  • Paste your Facebook App Id and App Secret.
  • Run the index.html with localhost