Socialid.events.onDisconnectError
(Difference between revisions)
Dirceu.tiegs (Talk | contribs) |
Dirceu.tiegs (Talk | contribs) |
||
Line 14: | Line 14: | ||
|+ | |+ | ||
! align="left" width="200px" | provider | ! align="left" width="200px" | provider | ||
− | | The provider to be used to disconnect. | + | | The provider to be used to disconnect. Can be "facebook", "twitter", "linkedin", or "gplus". |
|+ | |+ | ||
! align="left" width="200px" | code | ! align="left" width="200px" | code |
Revision as of 19:12, 3 November 2014
Contents |
Description
Executed when an error occurs during a disconnection from a credential.
Adding Handler
socialid.events.onDisconnectError.addHandler(handler)
Event Data
event | onDisconnectError | provider | The provider to be used to disconnect. Can be "facebook", "twitter", "linkedin", or "gplus". | code | The error code returned during the disconnection. |
---|
Error codes
not_found | It wasn't possible to obtain the current connection for this user (user not logged in). | internal_server_error | Unknown error. |
---|
Example
Adding a handler for the onDisconnectError event of the Social Connect widget:
socialid.events.onDisconnectError.addHandler(function(data) { console.log("Website received onDisconnectError: ", data); });
Example response object when an error occurs:
{ event: "onDisconnectError", provider: "twitter", code: "not_found" }