OAuth Electron Facebook

OAuth Electron Facebook

logo_fb

this package is currently in development and is not available for use

Use Facebook OAuth in a simple way inside your electron App.

Installation

add it to your elenctron project using npm command

npm install oauth-electron-facebook --save

Usage

add the require for ouath and twitter specific code from this package

var oauth = require('oauth-electron-facebook').oauth;
var facebook = require('oauth-electron-facebook').facebook;

declare a twitter object, and use it as parameter for the oauth in conjuntion with the electron window used to display the login

var info = new facebook("key","secret", <scope>, <params>);
var auth = new oauth();
auth.login(info, window);

the login function will return a Promise with the acces token and secret

{
    oauth_access_token: ***,
    oauth_refresh_token: ***
}
logo: Award graphic by Freepik and Letter F graphic by Icomoon from Flaticon are licensed under CC BY 3.0. Made and modified with Logo Maker
Avatar
Code dreamer, Creator of random stuff & sharing wizard