Socket
Socket
Sign inDemoInstall

graph-api

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    graph-api

Facebook Graph API SDK for NodeJS


Version published
Weekly downloads
8
increased by33.33%
Maintainers
1
Install size
24.8 kB
Created
Weekly downloads
 

Readme

Source

graph-api

Facebook Graph API SDK for NodeJS.

NPM

A way to use the Facebook Graph API without being angry about unreadable code, lot of dependencies and hard to learn syntaxes.

Installation

Using npm:

npm install graph-api

Clonning the repo:

git clone https://gitea.melvillei.org/mmendescortes/graph-api.git

Self-mode usage example

Require the module:

const fb = require('graph-api');

Set the options:

fb.options(
    'self',
    'your_desired_callback_url',
    'your_access_token'
);

Make a query:

fb.get(['id', 'name'], function(data){
    // your code here
});

Note: This query example is only valid for self mode! For more examples and usage, please refer to the Wiki.

Release History

  • 1.0.4
    • CHANGE: Renamed callback to callback_uri, fixed facebook's callback bug and deleted some unecessary code.
  • 1.0.3
    • CHANGE: Token class is updated and callback class is merged onto options class.
  • 1.0.2
    • CHANGE: Overall Improvement.
    • ADD: Creation of the dialog and token classes.
  • 1.0.1
    • Work in progress

Meta

Mateus M. Côrtes – @mmendescortesmmendescortes@gmail.com

Distributed under the Mozilla Public License 2.0. See LICENSE for more information.

https://gitea.melvillei.org/mmendescortes/graph-api

Keywords

FAQs

Last updated on 23 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc