Ticket: Error adding multiple LinkedIn accounts in Postiz

@ThinkBig1979 Just created a ticket
Question: If I want to add multiple LinkedIn pages and accounts to self-hosted Postiz, how would I go about adding the necessary client IDs and secrets? There is no documentation on basic use cases like this that I can find.
Attempted: I have successfully added my own Linkedin Account, but now trying to add a linkedin page and getting the error: Bummer, something went wrong. The redirect_uri does not match the registered value. I've tried adding additional sets of LinkedIn IDs and secrets to the credentials to the compose file, but then I get errors.
Working On: Setting up self hosted Postiz for a small marketing agency.
Using Postiz On: Docker-Compose
Take it from here @Postiz
24 Replies
egelhaus
egelhaus4d ago
Hello, could you please share your docker-compose / .env? And your Domain / IP via you access Postiz
ThinkBig1979
ThinkBig19793d ago
Sure, here's my compose file (substituting 'mydomain' for my real domain name. (my real domain name is a single word .com domain, so the format of the fake domain name is correct): https://pastebin.com/kN5SY12w And my .env file (which is in the same directory as my compose file). Obviously all keys and secrets are dummies: https://pastebin.com/4rCjRGxF
Pastebin
Postiz Docker Compose File - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
postiz .env - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
egelhaus
egelhaus3d ago
Ok so In the LinkedIn settings (LinkedIn Website), you need to add the redirect URI https://postiz.mydomain.com
ThinkBig1979
ThinkBig19793d ago
Ok, so the documentation says this:
If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/linkedin
If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/linkedin
This is what I have done now, which allowed me to add at least one account successfully. So you're saying I need to change that, right?
egelhaus
egelhaus3d ago
Yes
ThinkBig1979
ThinkBig19793d ago
Ok... - Changed the redirect URL on both Linkedin apps I want to add. - Deleted my persisted data and restarted the Docker stack, so completely clean slate. - Created an account / signed in on my Postiz app - Tried to add LinkedIn channel..... - Tried to add a LinkedIn Page channel - Both resulted in the Bummer error 😢
No description
ThinkBig1979
ThinkBig19793d ago
No description
egelhaus
egelhaus3d ago
Hmm that’s weird Wait What do you mean “multiple LinkedIn Apps”? Do you want to connect multiple Accounts?
ThinkBig1979
ThinkBig19792d ago
Hi, that's correct. My company manages multiple linkedin accounts, and I would like to add them all. In fact, we manage multiple Instagram accounts for our clients as well. So I would want to add those as well.
egelhaus
egelhaus2d ago
Yes, that’s possible with only one “app” you just need to, as soon as you linked the first account, log out (in linkedin) and login with the second account and link it so you would only need one app for multiple accounts and the value needs to be exactly https://postiz.example.com/integrations/social/linkedin
ThinkBig1979
ThinkBig19792d ago
The thing is, we do not have the login credentials of our clients, they have simply made us super admin of their linkedin pages. That allows us to create linkedin apps for each client under our own account. Each app has its own clientID and secret, but is tied to our own account
egelhaus
egelhaus2d ago
Well, how postiz works, you can only add one app you would need to ask your clients to have login credentials or create multiple postiz instances and in the app authorize multiple accounts*
ThinkBig1979
ThinkBig19792d ago
I don't see that as a workable solution. We should not be asking for our clients' login credentials. That's the whole purpose behind being able to assign page admins. I guess Postiz is not a tool for agencies Ideal scenario: One linkedin account is able to link multiple LinkedIn apps (for all the client pages they manage) into Postiz.
ThinkBig1979
ThinkBig19792d ago
No description
ThinkBig1979
ThinkBig19792d ago
Without this feature, I don't see Postiz being usable for agencies.
egelhaus
egelhaus2d ago
You could request the Feature in the GitHub
ThinkBig1979
ThinkBig19792d ago
Will do, thanks.
egelhaus
egelhaus2d ago
That would require an advanced AdminUI and an very good docs
ThinkBig1979
ThinkBig19792d ago
I honestly thought the point of Postiz was to help agencies manage their social media client accounts, but it seems it's more aimed at businesses managing their own social channels. I guess I misinterpreted the use case.
egelhaus
egelhaus2d ago
And an complete revamp of the API system Yeah
ThinkBig1979
ThinkBig19792d ago
Hey, actually, I think I just found out how to do it! - started Postiz with a clean slate again - changed the redirect URL for the two linked apps that I have created to https://postiz.mydomain.com/integrations/social/linkedin-page - then without first adding a regular linkedin channel, I went straight for add linkedin page - after loggin into linkedin, and being redirected to Postiz, I was presented with a menu showing the two pages (apps) I created, and I was able to add them, one by one 🙂
egelhaus
egelhaus2d ago
So it works now?
ThinkBig1979
ThinkBig19792d ago
Well, I can definitely add multiple linkedin pages corresponding to the apps I created under my Linkedin account, so that is working 🙂
Support
SupportOP4h ago
Hi @ThinkBig1979 Please select an action

Did you find this page helpful?