Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

req.facebook.me() incorrect cb #9

Description

@hiattp

You have:

this.me = function(cb) {
if (self.token) {
self.get('/me', function(me) {
cb(me);
});
} else {
cb();
}
}

But the successful self.get function returns cb(null,result), so it should be:

this.me = function(cb) {
if (self.token) {
self.get('/me', function(err, me) {
cb(me);
});
} else {
cb();
}
}

Sorry for not just making the edit and submitting a pull request but I made a few other changes others may not want and this is a pretty minor fix :).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions