Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
389 Vistas

Hi, I want to add a LinkedIn developer account to test the Social Marketing module . After creating a new developer account and application on LinkedIn, I entered the App ID and App Secret in the Odoo configuration (localhost). However, I keep getting the following error:


"Bummer, something went wrong.

The redirect_uri does not match the registered value."


Same issue with the Twitter configuration: "An error occurred while trying to link your account (Unauthorized)"


Any help, please?

Avatar
Descartar
Mejor respuesta

I understand you're encountering errors when configuring LinkedIn and Twitter with Odoo's Social Marketing module, specifically:

  • LinkedIn Error: "The redirect_uri does not match the registered value."​
  • Twitter Error: "An error occurred while trying to link your account (Unauthorized)."

To address these issues, please follow the steps below:

1. Verify Redirect URIs:

  • LinkedIn:
    • Redirect URI: Ensure the Redirect URI in your LinkedIn app settings matches exactly with the one provided by Odoo.
    • LinkedIn App Settings: Navigate to your LinkedIn Developer Portal, go to your app's settings, and confirm the Redirect URI under the OAuth 2.0 settings.
  • Twitter:
    • Callback URL: Ensure the Callback URL in your Twitter app settings matches exactly with the one provided by Odoo.
    • Twitter App Settings: Navigate to your Twitter Developer Portal, go to your app's settings, and confirm the Callback URL under the Authentication settings.

2. Use HTTPS and Publicly Accessible URLs:

  • Both LinkedIn and Twitter require the Redirect/Callback URLs to be accessible over HTTPS.​
  • If you're developing locally (e.g., using localhost), consider using a tool like ngrok to create a secure tunnel to your local server. This provides a public HTTPS URL that you can use as your Redirect/Callback URL.​

3. Update Odoo's Base URL:

  • Ensure that the Base URL in Odoo matches the URL you're using, especially if you're using a tool like ngrok.​
  • In Odoo, go to Settings > General Settings, and set the "Web Base URL" to your public URL (e.g., the ngrok URL).​

4. Re-link Social Media Accounts:

  • After making the above changes, attempt to link your LinkedIn and Twitter accounts again in Odoo.​
  • In Odoo, navigate to Social Marketing > Configuration > Social Media, and use the "Link Account" option for each platform.​

5. Check for Additional Permissions:

  • Ensure that your LinkedIn and Twitter apps have the necessary permissions/scopes enabled to allow Odoo to interact with them.​
  • For LinkedIn, this might include permissions like rw_organization_social.​
  • For Twitter, ensure that the app has Read and Write permissions enabled.​

6. Monitor Odoo Logs:

  • If issues persist, check Odoo's server logs for more detailed error messages that can provide further insight into the problem.​

By carefully following these steps, you should be able to resolve the integration issues between Odoo's Social Marketing module and your LinkedIn and Twitter accounts.​

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 25
553
0
may 25
5
0
may 25
37
1
may 25
161
0
may 25
179