Allow Your Users to Connect Their Social Media Accounts
logout=true
For example:https://profile.ayrshare.com?domain=[domain id]&jwt=[jwt token]&logout=true
This forces a logout and then logs in the new profile.Please also see the Generate JWT endpoint to automatically add the logout.Warning: Using automatic logout causes a performance delay for your user, so unless you need it, we suggest not forcing a logout and not using it in production.window.open()
function instead of an anchor href.
The “Close” button uses JavaScript to close the window, and most browsers only allow windows opened via a script to be closed.
You can use the following sample code on your website to launch the social linkage window.
origin=true
to the query parameters of the redirect URL.
Please see Generate JWT endpoint for more details.
Close
button redirect back to your page (often useful on mobile), pass in the redirect
GET parameter as a URL encoded string starting with https.
Please see the Generate JWT endpoint parameters for more details.
redirect
parameter is not passed.
To reset the Close
button back to close, pass the parameter redirect=null
.