Facebook username field is missing

I have a server, writtien in NodeJS and in it I am requesting some information about a user on facebook given his access_token with fbgraph (version 1.1.0).

return Promise.promisify(graph.get)('me', { fields: 'picture,id,birthday,email,first_name,last_name,name,middle_name,link,timezone,updated_time,verified, ... access_token: token });

The access token is sent by the client side (android). The problem I'm running into is that for a very small percentage of requests, the response is missing a "name" field, although I get other information like email, profile picture, ...

I thought the "name" field was part of the public_profile and always provided, or can the user somehow set as hidden?

+3
node.js facebook-graph-api facebook-login


source to share


No one has answered this question yet

Check out similar questions:

390
Design for Facebook authentication in an iOS app that also accesses a secure web service
82
Facebook Graph API, how to get users email?
4
What types of data are the different Facebook user data?
3
Facebook api v2.4 graph does not return birthday
2
Facebook API for fetching group membership requests
2
Get other user information via Facebook API
1
Facebook Real-Time Updates - Get Updates for Friends
0
FaceBook v2.5 / me Call how to set up area
0
Will the user id primary key value be changed / not changed via the Facebook API after login or later?
0
Facebook api taggable_friends gender



All Articles
Loading...
X
Show
Funny
Dev
Pics