-
Notifications
You must be signed in to change notification settings - Fork 55
/
package.json
41 lines (41 loc) · 2.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"name": "facebook-node-sdk",
"version": "0.2.0",
"description": "Node.js SDK for the Facebook API",
"tags": [
"facebook"
],
"author": {
"name": "Hitoshi Amano",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/amachang/facebook-node-sdk.git"
},
"scripts": {
"test": "node_modules/.bin/expresso"
},
"bugs": {
"url": "https://github.com/amachang/facebook-node-sdk/issues"
},
"license": [
{
"type": "MIT",
"url": "https://raw.github.com/amachang/facebook-node-sdk/master/LICENSE"
}
],
"devDependencies": {
"expresso": ">=0.9.2",
"express": ">=2.5.1"
},
"main": "./lib/facebook",
"readme": "# Facebook Node SDK\n\nFacebook API Implementation in Node.\n\n[![Build Status](https://secure.travis-ci.org/amachang/facebook-node-sdk.png)](http://travis-ci.org/amachang/facebook-node-sdk)\n\n## Features\n\n* Supports all Facebook Graph API, FQL, and REST API.\n* Compatible with the official Facebook PHP SDK.\n\n## Install\n\nTo install the most recent release from npm, run:\n\n npm install facebook-node-sdk\n\n## Synopsis\n\n var Facebook = require('facebook-node-sdk');\n \n var facebook = new Facebook({ appID: 'YOUR_APP_ID', secret: 'YOUR_APP_SECRET' });\n \n facebook.api('/amachang', function(err, data) {\n console.log(data); // => { id: ... }\n });\n\n### With express framework (as connect middleware)\n\n var express = require('express');\n var Facebook = require('facebook-node-sdk');\n \n var app = express.createServer();\n \n app.configure(function () {\n app.use(express.bodyParser());\n app.use(express.cookieParser());\n app.use(express.session({ secret: 'foo bar' }));\n app.use(Facebook.middleware({ appId: 'YOUR_APP_ID', secret: 'YOUR_APP_SECRET' }));\n });\n \n app.get('/', Facebook.loginRequired(), function (req, res) {\n req.facebook.api('/me', function(err, user) {\n res.writeHead(200, {'Content-Type': 'text/plain'});\n res.end('Hello, ' + user.name + '!');\n });\n });\n\n",
"readmeFilename": "README.md",
"_id": "[email protected]",
"dist": {
"shasum": "538604a2598fbcbf7f973b19e6b3dea04d2a8169"
},
"_resolved": "git://github.com/Costent/facebook-node-sdk.git#640d248881555f3718858eb551851867ae634484",
"_from": "facebook-node-sdk@git://github.com/Costent/facebook-node-sdk.git"
}