Authorization errors with almost everything
-
I have tried logging into a few channels after installing Postiz, but I am getting various authorization errors with LinkedIn, Facebook, Youtube.
LinkedIn, for example: "You need to pass the "client_id" parameter"Some other networks such as Pinterest or Bluesky provide a login mask indicating they might work.
-
Was anyone able to make it work? I went through the process to try and set up X (Twitter) and go the same error after registering API keys, updating them in the .env file, restarting the app, and retrying the channel connection.
-
I did set it up with Youtube, which almost worked, but there was a Postiz internal issue that prevented posting a video.
-
I got Twitter to work after some effort - you have to make sure your X developer app is inside a "project" so that it has access to the v2 API as well.
...I'm now having problems with LinkedIn that I can't seem to debug at all.
-
This post is deleted!
-
This post is deleted!
-
Did anyone manage to set this up with a LinkedIn Company Page? I followed the steps from here (Created app, Products are all selected and approved and API keys & redirect URI are set up), but when I click on "Add Channel" and authenticate with LinkedIn, this comes back and the app restarts:

Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /integrations/social/linkedin-page?code=redacted HTTP/1.1" 200 6591 "https://www.linkedin.com/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/user/self HTTP/1.1" 200 579 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/user/organizations HTTP/1.1" 200 296 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/notifications HTTP/1.1" 200 11 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /api/integrations/list HTTP/1.1" 200 19 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /_next/static/chunks/app/(app)/(site)/launches/page-da2cbebe3c0554fd.js HTTP/1.1" 499 0 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:38 172.18.0.1 - - [03/Nov/2025:17:04:38 +0000] "GET /launches?_rsc=1dl1l HTTP/1.1" 200 1165 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /analytics?_rsc=1dl1l HTTP/1.1" 200 1204 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /media?_rsc=1dl1l HTTP/1.1" 200 785 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /plugs?_rsc=1dl1l HTTP/1.1" 200 1149 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /agents?_rsc=1dl1l HTTP/1.1" 200 1315 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /third-party?_rsc=1dl1l HTTP/1.1" 200 1182 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "GET /settings?_rsc=1dl1l HTTP/1.1" 200 1189 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 node:internal/process/promises:389 Nov 03 18:04:39 new UnhandledPromiseRejection(reason); Nov 03 18:04:39 ^ Nov 03 18:04:39 2025-11-03T17:04:39Z Nov 03 18:04:39 UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<NotEnoughScopes>". Nov 03 18:04:39 at throwUnhandledRejectionsMode (node:internal/process/promises:389:7) Nov 03 18:04:39 at processPromiseRejections (node:internal/process/promises:470:17) Nov 03 18:04:39 at process.processTicksAndRejections (node:internal/process/task_queues:96:32) { Nov 03 18:04:39 code: 'ERR_UNHANDLED_REJECTION' Nov 03 18:04:39 } Nov 03 18:04:39 2025-11-03T17:04:39Z Nov 03 18:04:39 Node.js v20.18.2 Nov 03 18:04:39 2025/11/03 17:04:39 [error] 164#164: *478 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.1, server: _, request: "POST /api/copilot/chat HTTP/1.1", upstream: "http://127.0.0.1:3000/copilot/chat", host: "example.com", referrer: "https://example.com/integrations/social/linkedin-page?code=redacted" Nov 03 18:04:39 2025/11/03 17:04:39 [error] 164#164: *471 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.1, server: _, request: "POST /api/integrations/social/linkedin-page/connect HTTP/1.1", upstream: "http://[::1]:3000/integrations/social/linkedin-page/connect", host: "example.com", referrer: "https://example.com/integrations/social/linkedin-page?code=redacted" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "POST /api/copilot/chat HTTP/1.1" 502 166 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 172.18.0.1 - - [03/Nov/2025:17:04:39 +0000] "POST /api/integrations/social/linkedin-page/connect HTTP/1.1" 502 166 "https://example.com/integrations/social/linkedin-page?code=redacted" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0" Nov 03 18:04:39 /app/code/apps/backend: Nov 03 18:04:39 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL postiz-backend@1.0.0 start: `dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/backend/src/main.js` Nov 03 18:04:39 Exit status 1 Nov 03 18:04:39 WARN Local package.json exists, but node_modules missing, did you mean to install? Nov 03 18:04:39 2025-11-03 17:04:39,338 WARN exited: backend (exit status 1; not expected) Nov 03 18:04:40 172.18.0.1 - - [03/Nov/2025:17:04:40 +0000] "GET / HTTP/1.1" 307 15 "-" "Mozilla (CloudronHealth)" Nov 03 18:04:40 2025-11-03 17:04:40,022 INFO spawned: 'backend' with pid 296 Nov 03 18:04:40 WARN Issue while reading "/root/.config/pnpm/rc". EACCES: permission denied, open '/root/.config/pnpm/rc' Nov 03 18:04:40 . | WARN Unsupported engine: wanted: {"node":">=22.0.0 <23.0.0"} (current: {"node":"v20.18.2","pnpm":"10.6.1"}) Nov 03 18:04:40 2025-11-03T17:04:40Z Nov 03 18:04:40 > postiz-backend@1.0.0 start /app/code/apps/backend Nov 03 18:04:40 > dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/backend/src/main.js Nov 03 18:04:40 2025-11-03T17:04:40Z Nov 03 18:04:41 2025-11-03 17:04:41,509 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)Can't say if it's a Cloudron or upstream thing, happy to report it there, just need some pointers

-
For anyone having those problems, here's quick update for this one: After a few weeks someone from the Postiz Discord (terrible way and platform for bug reporting btw) suggested to set up Cloudflare R2. It took two restarts, but after that I managed to connect my LinkedIn pages, because apparently it wasn't able to store the profile images and thus created that redirect above.
Although, now that I'm writing this, the bucket it still empty, but there are files in
/app/data/data/2025/11/27(the second data folder wasn't there yet, I needed to create that one manually, maybe that solved it after all?)Also, even with the working connection, this error appeared in the logs, maybe we could let that point to somewhere it can write:
Nov 27 19:37:40 ⨯ Failed to write image to cache x5s7nobKRgx-CJ5Nq4z9X1PXnOjxJPxqtCDckv+9gKk= Error: ENOENT: no such file or directory, mkdir '/app/code/apps/frontend/.next/cache/images' Nov 27 19:37:40 at async Object.mkdir (node:internal/fs/promises:860:10) Nov 27 19:37:40 at async writeToCacheDir (/app/code/node_modules/next/dist/server/image-optimizer.js:190:5) Nov 27 19:37:40 at async ImageOptimizerCache.set (/app/code/node_modules/next/dist/server/image-optimizer.js:574:13) Nov 27 19:37:40 at async /app/code/node_modules/next/dist/server/response-cache/index.js:121:25 Nov 27 19:37:40 at async /app/code/node_modules/next/dist/lib/batcher.js:45:32 { Nov 27 19:37:40 errno: -2, Nov 27 19:37:40 code: 'ENOENT', Nov 27 19:37:40 syscall: 'mkdir', Nov 27 19:37:40 path: '/app/code/apps/frontend/.next/cache/images' Nov 27 19:37:40 }