Commit 41e67e03 by Arnout Kazemier

Merge pull request #4 from lome/master

Added facebookId method
parents 31747ef8 758c4040
...@@ -83,6 +83,23 @@ Person.prototype.facebook = function facebook() { ...@@ -83,6 +83,23 @@ Person.prototype.facebook = function facebook() {
}; };
/** /**
* Retrieve contact information by Facebook id.
*
* ```js
* fullcontact.person.facebookId('1844599060', [queue], fn);
* ```
*
* @returns {Person}
* @api public
*/
Person.prototype.facebookId = function facebook() {
var args = this.api.args(arguments, 'queue');
this.send({ facebookId: args.value }, args);
return this;
};
/**
* Retrieve contact information by phone number. * Retrieve contact information by phone number.
* *
* ```js * ```js
......
...@@ -59,6 +59,14 @@ describe('FullContact.Person', function () { ...@@ -59,6 +59,14 @@ describe('FullContact.Person', function () {
it('provides the proper casing'); it('provides the proper casing');
}); });
describe('#facebookId', function () {
it('retrieves data by facebook id', function (done) {
api.person.facebookId('1844599060', done);
});
it('provides the proper casing');
});
describe('#phone', function () { describe('#phone', function () {
it('retrieves data by phone number'); it('retrieves data by phone number');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment