X
Members sign in with their X account, in the system browser.
Before you start
Section titled “Before you start”| Console | X Developer Portal |
| Endpoint group | Social Login |
| Only for apps on a high enough access tier. When absent, it comes back empty | |
| Signs in | In the browser |
Create the app
Section titled “Create the app”-
Open the X Developer Portal and create a project, then an app inside it.
-
Open the app’s User authentication settings and set them up.
-
Choose Read as the app permission. Sign-in needs nothing more.
-
Choose Web App as the type of app.
-
Add the callback address under Callback URI / Redirect URL: the string from Memberside → API Keys → Social Login → X, which looks like
https://yoursite.com/wp-json/memberside/v1/social/callback/x. -
Fill in the Website URL with your site.
-
Copy the API Key and API Key Secret from Keys and tokens.
About the email address
Section titled “About the email address”Plan for both outcomes. A community that treats X as a way for existing members to sign in more quickly needs nothing extra. A community that expects new members to register through X should apply for that access first.
What to paste into Memberside
Section titled “What to paste into Memberside”Under Memberside → API Keys → Social Login → X:
| Field | Value |
|---|---|
| Client ID | The API Key |
| Client secret | The API Key Secret |
When it does not work
Section titled “When it does not work”| Symptom | Cause | Fix |
|---|---|---|
| “Callback URL not approved” | The address is not registered on the app | Add it under User authentication settings |
| No email comes back | The app’s access tier does not include the address | Apply for a higher one, or accept sign-in only |
| The member is asked to authorise every time | Expected for read-only apps | Nothing to fix |
| “Could not authenticate you” | The key or secret is wrong | Regenerate them and paste again |