Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Oct 18, 2010
1 parent 001d7d4 commit 1ec6fc7
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions Readme.md
@@ -1,31 +1,5 @@
# facebook-js

Easy peasy facebook client

## Usage

facebook-js has two methods.

*getAccesToken*: Uses oAuth module to retrieve the access_token
*apiCall*: Does a graph call to facebook.

## Example

facebookClient.getAccessToken({
redirect_uri: apis.auth.facebook.callback,
code: req.param('code'),
scope: 'offline_access,read_stream,publish_stream'
},
function (error, token) {
if (token) {
facebookClient.graphCall('GET', 'me', {access_token: token.access_token}, function (error, result) {
sys.puts(sys.inspect(result));
});
}
}
);
# facebook-js

Easy peasy facebook client for connect.

npm install facebook-js
Expand All @@ -49,7 +23,7 @@ facebook-js has two methods.
},
function (error, token) {
facebookClient.graphCall('GET', '/me', {access_token: token.access_token}, function (error, result) {
res.render('tweet.jade', {locals: {result: result}});
res.render('facebook_me.jade', {locals: {result: result}});
});
}
);
Expand Down

0 comments on commit 1ec6fc7

Please sign in to comment.