HTTP request
GET https://api.wevoteusa.org/apis/v1/voterFacebookSignInSave (Jump to "Try It Now")
Required Parameters
| Parameter name | Value | Description |
| api_key | string (from post, cookie, or get (in that order)) | The unique key provided to any organization using the WeVoteServer APIs |
| voter_device_id | string | An 88 character unique identifier linked to a voter record on the server |
| save_auth_data | boolean | Listen for facebook authentication data. |
| facebook_access_token | string | The Facebook accessToken |
| facebook_user_id | string | The Facebook big integer id |
| facebook_expires_in | string | The Facebook expiresIn |
| facebook_signed_request | string | The Facebook signedRequest |
| save_profile_data | boolean | Listen for facebook profile data. |
| facebook_email | string | Email address from Facebook |
| facebook_first_name | string | First name from Facebook |
| facebook_middle_name | string | Middle name from Facebook |
| facebook_last_name | string | Last name from Facebook |
| facebook_profile_image_url_https | string | Email address from Facebook |
Response
{
"status": string,
"success": boolean,
"voter_device_id": string (88 characters long),
"facebook_save_attempted": boolean,
"facebook_sign_in_saved": boolean,
}
Response Status Codes
| Code | Description |
| VALID_VOTER_DEVICE_ID_MISSING | Cannot proceed. A valid voter_device_id parameter was not included. |
| MISSING_VOTER_ID_OR_ADDRESS_TYPE | Cannot proceed. Missing variables voter_id or address_type while trying to save. |
Try It Now: API Variables
Save the results of Facebook sign in authentication.