{"action":"closed","issue":{"url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/989","labels_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/989/comments","events_url":"https://api.github.com/repos/TelescopeJS/Telescope/issues/989/events","html_url":"https://github.com/TelescopeJS/Telescope/issues/989","id":82590708,"number":989,"title":"Facebook registration fails with missing email and username","user":{"login":"eelcobrolman","id":5680995,"avatar_url":"https://avatars.githubusercontent.com/u/5680995?v=3","gravatar_id":"","url":"https://api.github.com/users/eelcobrolman","html_url":"https://github.com/eelcobrolman","followers_url":"https://api.github.com/users/eelcobrolman/followers","following_url":"https://api.github.com/users/eelcobrolman/following{/other_user}","gists_url":"https://api.github.com/users/eelcobrolman/gists{/gist_id}","starred_url":"https://api.github.com/users/eelcobrolman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eelcobrolman/subscriptions","organizations_url":"https://api.github.com/users/eelcobrolman/orgs","repos_url":"https://api.github.com/users/eelcobrolman/repos","events_url":"https://api.github.com/users/eelcobrolman/events{/privacy}","received_events_url":"https://api.github.com/users/eelcobrolman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-29T21:16:00Z","updated_at":"2015-06-04T08:10:23Z","closed_at":"2015-06-04T08:10:23Z","body":"Dear sirs,\r\n\r\nWhen registering with Facebook to Telescope 2 things go wrong:\r\n1. The email from facebook is not stored in the MongoDB.users collection\r\n2. No username is stored in the MongoDB.users collection\r\n\r\nThe first results in having to enter an email adres manually after registering, the second is worse, it prevents the user to login. Telescope keeps saying it misses information in the profile and won't let you do anything.\r\n\r\nI fixed it manually by added `\"username\": \"someusername\"` to my MongoDB.users record, but this should be done automagically, either by making up some username, or using facebook's username with some random chars to prevent duplicates."}}