Coder Social home page Coder Social logo

cjpatoilo / openfb Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 2.83 MB

Facebook integration in JavaScript apps running in the browser and in Cordova.

Home Page: https://cjpatoilo.com/openfb

License: MIT License

JavaScript 64.59% HTML 35.41%
auth authenticate authentication cordova facebook fb login oauth openfb webview

openfb's Introduction

Facebook integration in JavaScript apps running in the browser and in Cordova.

Facebook integration in JavaScript apps running in the browser and in Cordova.

Travis Status AppVeyor Status Codacy Status Dependencies Status Version Status Download Status Gitter Chat

Why it's awesome

OpenFB is an easy way for Facebook integration in JavaScript apps. No dependency. No Facebook plugin. No Facebook SDK. OpenFB allows you to login to Facebook and executes any Facebook Graph API request.

Getting Started

Install with npm

$ npm install openfb

Install with Yarn

$ yarn add openfb

Install with Bower

$ bower install openfb

Usage

First step, create a Facebook App:

  1. Access https://developers.facebook.com/apps, and in "My Apps" Tab click Create App
  2. Define a unique name for your app and click Create App ID

Second step, create Facebook Login:

  1. Click Set Up of the "Facebook Login" section
  2. Now click on the "Settings" of the "Facebook Login" tab in the sidebar navigation
  3. On the "Client OAuth Settings", add the following URLs in the "Valid OAuth Redirect URIs" field:
  1. Click Save Changes
  2. Now, the App ID is available

Features

  • Integrate your JavaScript application with Facebook.
  • Works for both BROWSER-BASED apps and CORDOVA apps.
  • Login to Facebook.
  • Run any Facebook Graph API request.
  • No dependency.
  • No Facebook SDK.
  • No Facebook Cordova plugin.
  • No jQuery.

Extensions

Contributing

Want to contribute? Follow these recommendations.

License

Designed with โ™ฅ by CJ Patoilo. Licensed under the MIT License.

openfb's People

Contributors

cjpatoilo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

samosoviet

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.