rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.37k stars 493 forks source link

undefined has joined the room. #106

Open meeblo opened 10 years ago

meeblo commented 10 years ago

Problems with Facebook auth User can join to room and i see only "undefined has joined the room."

To-mos commented 9 years ago

this is because the responce data from facebook no longer has the "username" attribute so anything with req.user.username needs to be corrected to handle facebooks "displayName" change. I fixed it by going through and adding

(req.user.provider == "facebook" ? req.user.displayName : req.user.username)
curtlucas commented 9 years ago

I have having this same issue, replacing .username with .DisplayName didn't seem to help.