Package Exports
- graph-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graph-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
graph-api
Facebook Graph API SDK for NodeJS.
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-apiClonning the repo:
git clone https://gitea.melvillei.org/mmendescortes/graph-api.gitSelf-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 – @mmendescortes – mmendescortes@gmail.com
Distributed under the Mozilla Public License 2.0. See LICENSE for more information.
