Git Product home page Git Product logo

facebook-app's Introduction

facebook-app

Testing facebook sign-in for a web app.

Dependencies

  • NodeJS
    • node version 12.16.3
    • npm version 6.14.4
  • Windows OS 64 bit (optional)

Usage

  1. Clone this repository.
    git clone https://github.com/weaponsforge/facebook-app.git

  2. Install dependencies.
    npm install

  3. Run the local web server.
    npm run start

  4. Launch the app on a web browser.
    https://localhost:3000

    WARNING: Loading https://localhost:3000 as ease will load the web app on an insecure ssl connection. Test signing in to FB at your own risk.

    If you want load the web app on a secure connection from localhost, follow the instructions discussed in the section Use Secure SSL Certificates on Localhost. (for windows OS only instructions for other OS may vary)

Use Secure SSL Certificates on Localhost

  1. Launch notepad with Administrator access and open the C:\Windows\System32\drivers\etc\hosts file.

  2. Append the following lines:

     127.0.0.1 mywebsite.com
     127.0.0.1 localhost
    
  3. Press Search from windows menu and search for certmgr.msc.

  4. Under the certmgr window,

    • Go to Certificates - Current User -> Trusted Root Certification Authority -> Certificates
    • Right + Click the Certificates directory
    • Select All tasks -> Import
      • Browse for the localhost-ssl.cer file under /server/helpers/localhost-ssl.cer
      • Press the Next button.
      • Select the option Place all certificates in the following store
        • Certificate store: Trusted Root Certification Authorities
      • Press the Next button, then Finish
      • A Security Warning window will appear. Press the Yes button.
  5. Close all instances of the Chrome browser, and re-open again. Load your localhost project: https://localhost:3000. This should now display a secure SSL connection.

  6. After you are done testing, it is a good idea to revert all changes made on steps #2 and #4 to prevent security holes in your Windows system.

@weaponsforge
20200609

facebook-app's People

Contributors

weaponsforge avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.