Commit d17f4a5a by Adri Van Houdt Committed by GitHub

Merge pull request #15 from fullcontact/master

Removed Facebook Lookups
parents e204e690 65e3a09f
...@@ -189,16 +189,6 @@ fullcontact.person.twitter('3rdEden', function (err, data) { ...@@ -189,16 +189,6 @@ fullcontact.person.twitter('3rdEden', function (err, data) {
}); });
``` ```
#### person.facebook(handle, [queue], fn);
Retrieves contact information by Facebook username.
```js
fullcontact.person.facebook('john.smith', function (err, data) {
..
});
```
#### person.phone(handle, [queue], fn); #### person.phone(handle, [queue], fn);
Retrieves contact information by phone number. Retrieves contact information by phone number.
......
...@@ -66,40 +66,6 @@ Person.prototype.twitter = function twitter() { ...@@ -66,40 +66,6 @@ Person.prototype.twitter = function twitter() {
}; };
/** /**
* Retrieve contact information by Facebook username.
*
* ```js
* fullcontact.person.facebook('arnout.kazemier', [queue], fn);
* ```
*
* @returns {Person}
* @api public
*/
Person.prototype.facebook = function facebook() {
var args = this.api.args(arguments, 'queue');
this.send({ facebookUsername: args.value }, args);
return this;
};
/**
* 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
......
...@@ -77,22 +77,6 @@ describe('FullContact.Person', function () { ...@@ -77,22 +77,6 @@ describe('FullContact.Person', function () {
it('provides the proper casing'); it('provides the proper casing');
}); });
describe('#facebook', function () {
it('retrieves data by facebook username', function (done) {
api.person.facebook('arnout.kazemier', done);
});
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', function (done) { it('retrieves data by phone number', function (done) {
api.person.phone('+13037170414', done); api.person.phone('+13037170414', done);
......
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