{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/ParseUI-iOS/issues/130","labels_url":"https://api.github.com/repos/ParsePlatform/ParseUI-iOS/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/ParseUI-iOS/issues/130/comments","events_url":"https://api.github.com/repos/ParsePlatform/ParseUI-iOS/issues/130/events","html_url":"https://github.com/ParsePlatform/ParseUI-iOS/issues/130","id":101132638,"number":130,"title":"PFLogInViewController: no Facebook button with emailAsUserName","user":{"login":"FredddyF","id":3481380,"avatar_url":"https://avatars.githubusercontent.com/u/3481380?v=3","gravatar_id":"","url":"https://api.github.com/users/FredddyF","html_url":"https://github.com/FredddyF","followers_url":"https://api.github.com/users/FredddyF/followers","following_url":"https://api.github.com/users/FredddyF/following{/other_user}","gists_url":"https://api.github.com/users/FredddyF/gists{/gist_id}","starred_url":"https://api.github.com/users/FredddyF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredddyF/subscriptions","organizations_url":"https://api.github.com/users/FredddyF/orgs","repos_url":"https://api.github.com/users/FredddyF/repos","events_url":"https://api.github.com/users/FredddyF/events{/privacy}","received_events_url":"https://api.github.com/users/FredddyF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nlutsenko","id":606991,"avatar_url":"https://avatars.githubusercontent.com/u/606991?v=3","gravatar_id":"","url":"https://api.github.com/users/nlutsenko","html_url":"https://github.com/nlutsenko","followers_url":"https://api.github.com/users/nlutsenko/followers","following_url":"https://api.github.com/users/nlutsenko/following{/other_user}","gists_url":"https://api.github.com/users/nlutsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nlutsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlutsenko/subscriptions","organizations_url":"https://api.github.com/users/nlutsenko/orgs","repos_url":"https://api.github.com/users/nlutsenko/repos","events_url":"https://api.github.com/users/nlutsenko/events{/privacy}","received_events_url":"https://api.github.com/users/nlutsenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-15T02:35:47Z","updated_at":"2015-08-25T03:12:56Z","closed_at":null,"body":"I suppose it's because of my Swift implementation, but I can't have the Facebook button appear in the PFLogInViewController.\r\nThis is not due to FB integration, since using only the standard FB login button instead of a PFLogInViewController works perfectly.\r\n\r\nLooking in StackOverflow, it appears I'm not the only one with this issue."},"comment":{"url":"https://api.github.com/repos/ParsePlatform/ParseUI-iOS/issues/comments/134461863","html_url":"https://github.com/ParsePlatform/ParseUI-iOS/issues/130#issuecomment-134461863","issue_url":"https://api.github.com/repos/ParsePlatform/ParseUI-iOS/issues/130","id":134461863,"user":{"login":"nlutsenko","id":606991,"avatar_url":"https://avatars.githubusercontent.com/u/606991?v=3","gravatar_id":"","url":"https://api.github.com/users/nlutsenko","html_url":"https://github.com/nlutsenko","followers_url":"https://api.github.com/users/nlutsenko/followers","following_url":"https://api.github.com/users/nlutsenko/following{/other_user}","gists_url":"https://api.github.com/users/nlutsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nlutsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlutsenko/subscriptions","organizations_url":"https://api.github.com/users/nlutsenko/orgs","repos_url":"https://api.github.com/users/nlutsenko/repos","events_url":"https://api.github.com/users/nlutsenko/events{/privacy}","received_events_url":"https://api.github.com/users/nlutsenko/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T03:12:56Z","updated_at":"2015-08-25T03:12:56Z","body":"Hey @FredddyF, I think I found the issue that you are experiencing.\r\nTry moving `.emailAsUsername = true` to after you set `fields` on `PFLogInViewController`.\r\nThe setter triggers load of PFLogInView, which captures the state of `fields` property, thus making it impossible to change it after they are set.\r\n\r\nThis is definitely something we would want to avoid, I am going to send a Pull Request to fix the problem at it's source."}}