This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow users to specify fields on the /me request for facebook
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 6fd282e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on my testing, supplying the fields param works. I get this response back from Facebook (changing the id and token for privacy)
{
"token": "foo",
"id": "bar",
"data": {
"name": "Phips Peter",
"id": "bar",
"picture": {
"data": {
"url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc6/pic.jpg",
"is_silhouette": false
}
}
},
"service": "facebook"
}
Without the fields parameter supplied
{
"token": "foo",
"id": "bar",
"data": {
"id": "bar",
"name": "Phips Peter",
"first_name": "Phips",
"last_name": "Peter",
"link": "link",
"username": "username",
"gender": "male",
"timezone": -7,
"locale": "en_US",
"verified": true,
"updated_time": "2013-03-27T04:42:06+0000"
},
"service": "facebook"
}
"this.fields" will always evaluate to "undefined" (the string).