GithubHelp home page GithubHelp logo

rlewkowicz / facebook-login-for-robots Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hfreire/facebook-login-for-robots

0.0 1.0 0.0 1.06 MB

Facebook Login for πŸ€– robots

License: MIT License

JavaScript 100.00%

facebook-login-for-robots's Introduction

Facebook Login for πŸ€– robots

Build Status Coverage Status Version Downloads

Uses a headless browser to perform a Facebook Login (OAuth dialog) in a Facebook App.

Features

  • Uses Perseverance to add βœ‹ rate limit, πŸ’© retry and πŸš₯ circuit breaker behaviour to your requests βœ…
  • Supports Bluebird 🐦 promises βœ…

How to install

npm install facebook-login-for-robots

How to use

Use it in your app

Use Facebook Login to get an access token for a Facebook App

const FacebookLogin = require('facebook-login-for-robots')

const facebookLogin = new FacebookLogin({
  facebook: {
    email: 'my-facebook-email-address', 
    password: 'my-facebook-passsword'
  }
})

const clientId = 'my-facebook-app-id'
const redirectUri = 'my-facebook-app-redirect-uri'

facebookLogin.oauthDialog(clientdId, redirectUri)
  .then(({ facebookAccessToken }) => console.log(facebookAccessToken))
  .catch((error) => console.error(error))

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige fΓΆr UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

Used by

  • get-me-a-date - 😍 Help me get a πŸ’˜ date tonight πŸŒ›

License

Read the license for permissions and limitations.

facebook-login-for-robots's People

Contributors

greenkeeper[bot] avatar greenkeeperio-bot avatar hfreire avatar

Watchers

 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.