Before you start
Create the app
1
Apply to the developer program
Sign in at developer.mewe.com and choose Sign Up for early access. MeWe reviews applications and grants access to the participants it selects.
2
Create a Standalone app
Once you are accepted, choose Add Application, then Create New Application:
- Application Type: Standalone. PostQueen runs outside MeWe, and the type cannot be changed later.
- Application Name, Description and App Icon: all required.
- Webhook URL: leave it empty. PostQueen does not use it.
- Permissions: allow posting to your timeline and to groups, and reading your groups. They cannot be changed after the app is created.
3
Copy the app ID and API key
Under your applications, copy the App ID and the API Key (choose Show API Key first). Keep the key private: every request PostQueen sends to MeWe carries it.
https for it, so serve PostQueen over HTTPS before real users connect.
Set the variables
Add the app ID and the API key to your environment:MEWE_HOST is where PostQueen sends the login and the API calls. It defaults to https://mewe.com, so leave it out unless MeWe gives you another host.
Recreate the app container so it reads the new variables. A plain docker restart or
docker compose restart keeps the old container and its old environment.
In the folder that holds docker-compose.yaml, recreate only the postqueen service:
docker compose down for a settings change: on
a host that runs other Compose services in the same project, it stops them too.
Then open PostQueen, go to Channels, choose Add Channel and pick this network. You are
sent to its login to authorize PostQueen, and the channel appears in the Channels list once you
accept.
The channel is in the Channels list with its avatar and name.
Add Channel does not check whether your variables are set. A missing or misspelled key shows
up as a broken authorization page on the network’s side rather than a helpful message in
PostQueen, so if the login page itself looks wrong, check the keys before anything else.
Staying connected
MeWe gives no refresh token. A connection lasts until the expiry MeWe sets, or 30 days when MeWe sets none. After that the channel asks to be reconnected.Troubleshooting
Login request is still pending. Please approve on MeWe and try again.
Login request is still pending. Please approve on MeWe and try again.
PostQueen came back before you approved it on MeWe. Approve the request on MeWe, then connect again.
Failed to exchange token. Please try again.
Failed to exchange token. Please try again.
MeWe refused the app ID or the API key. Check
MEWE_APP_ID and MEWE_API_KEY, and that the app is a Standalone app.Access token expired, please re-authenticate
Access token expired, please re-authenticate
The MeWe sign-in expired. Choose Reconnect channel in the channel’s menu.
Insufficient permissions for this action
Insufficient permissions for this action
The app does not have the permission for that post, such as posting to groups. Permissions cannot be changed on an existing app, so create a new app with them.