In testing the addition of Facebook sign in to Campaigns, I found one situation where it isn't working. When the email associated with Facebook is not in WeVoteServer database (Email or Voter email), the Facebook sign in fails. If you then sign in with email (using a verification code emailed to you), and sign out, Facebook sign in will work the second time (after the email address has been created in WeVoteServer).
To fix this, when you sign in, we need to support calling the API voterFacebookSaveToCurrentAccount (an alternate to voterMergeTwoAccountsByFacebookKey) in this file: Campaigns/src/js/components/Facebook/FacebookSignIn.jsx
I have pasted in the code (commented out) that was used in WebApp to call this API.
In testing the addition of Facebook sign in to Campaigns, I found one situation where it isn't working. When the email associated with Facebook is not in WeVoteServer database (Email or Voter email), the Facebook sign in fails. If you then sign in with email (using a verification code emailed to you), and sign out, Facebook sign in will work the second time (after the email address has been created in WeVoteServer).
To fix this, when you sign in, we need to support calling the API
voterFacebookSaveToCurrentAccount(an alternate to voterMergeTwoAccountsByFacebookKey) in this file: Campaigns/src/js/components/Facebook/FacebookSignIn.jsxI have pasted in the code (commented out) that was used in WebApp to call this API.