post https://api.accelevents.com/rest/u/login/facebook/admin
User can use this api for login/signup into the system as a admin role.
We need to pass token here, which is generated after successful login into the Facebook account with the other details.
So if user account is already available than it will simply login into the system, if user is not registered in the system, than it will create new user into the system and automatically login into the system.
Here is the description of response attributes, which returns in the form of JSON.
Attributes | Description |
---|---|
access_token | This access token is used as authentication key to validate user has rights to access specific api or not. It contains encrypted user details with event mapped with the user. |
expires_in | The expires_in returns date and time of access token expiration. |
redirectUrl | It contains redirect url based on user role after successfully login. |
showExhibitorMenu | It returns true if user is a exhibitor admin or lead retriever else it returns false. |
userId | The userId returns unique value associated with user. |
userRole | The userrole returns the role of user associated with mapped event. |
whiteLabelURL | White label url is a unique url which is managed and provided by white label admin. |
Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.
Error Code | Error Description |
---|---|
4040009 | Facebook token is not valid |
4040100 | No User could be found. |
4060001 | If server cannot produce a response matching the list of acceptable values than it returns specific error message. |