Skip to content
Browse files

0.0.2, improved npm and docs

  • Loading branch information...
1 parent 1ec6fc7 commit 06ee0a2d92cd716cc884a18063dd9945d0ff0ff5 @masylum committed
Showing with 6 additions and 4 deletions.
  1. +1 −1 Readme.md
  2. +1 −1 index.js
  3. +1 −1 lib/facebook_client.js
  4. +3 −1 package.json
View
2 Readme.md
@@ -14,7 +14,7 @@ facebook-js has two methods.
## Example using express.js
app.get('/facebook/me', function (req, res) {
- var facebookClient = require('facebook-js').facebookClient('consumerKey', 'consumerSecret');
+ var facebookClient = require('facebook-js')('consumerKey', 'consumerSecret');
facebookClient.getAccessToken({
redirect_uri: 'http://localhost:3000/facebook/auth',
View
2 index.js
@@ -1 +1 @@
-module.exports.facebookClient = require("./lib/facebook_client");
+module.exports = require("./lib/facebook_client");
View
2 lib/facebook_client.js
@@ -49,7 +49,7 @@ var querystring = require('querystring'),
module.exports = function (api_key, api_secret) {
- var client = {version: '0.0.1'},
+ var client = {version: '0.0.2'},
facebook_graph_url = 'https://graph.facebook.com';
client.getAuthorizeUrl = function (options) {
View
4 package.json
@@ -1,9 +1,11 @@
{
"name": "facebook-js",
"description": "easy peasy facebook client",
- "version": "0.0.1",
+ "version": "0.0.2",
"author": "Pau Ramon <masylum@gmail.com>",
"keywords": ["facebook"],
+ "main" : "lib/facebook_client.js",
+ "directories" : { "lib" : "./lib" },
"dependencies": { "oauth": ">= 0.8.2" },
"repository" : {"type": "git" , "url": "http://github.com/masylum/facebook-js.git" },
"engines": { "node": ">= 0.2.0" }

0 comments on commit 06ee0a2

Please sign in to comment.
Something went wrong with that request. Please try again.