Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinkedIn not connecting like other medias #41

Open
jonathanwmo opened this issue Jul 7, 2020 · 14 comments
Open

LinkedIn not connecting like other medias #41

jonathanwmo opened this issue Jul 7, 2020 · 14 comments

Comments

@jonathanwmo
Copy link

When I try to open LinkedIn on my local:8000 server an error occurs, however on the other social medias they all work?
Is this a known issue?

@fcurella
Copy link
Owner

fcurella commented Jul 7, 2020

Looks like linkedin tries to fetch URLs, and it can't fetch local. You can use ngrok to temporarily open a tunnel and expose your server to the public internet.

Basically, you will launch ngrok http 8000, then visit your project at the url that ngrok assigned to you (http://<something>.ngrok.io).

@sharon-samson
Copy link

I also have same issue. Tried with ngrok. But same issue

@fcurella
Copy link
Owner

fcurella commented Aug 3, 2020

@sharon-samson did you set the domain of your Site instance to the hostname ngrok provided you?

@sharon-samson
Copy link

http://cde554b2ced6.ngrok.io/
this is the link they provided when i run ./ngrok http 7000
i used this one

@fcurella
Copy link
Owner

fcurella commented Aug 4, 2020

Looks like Linkedin changed the way they share URLs. I'll update the template tag and release a new version.

@fcurella
Copy link
Owner

fcurella commented Aug 4, 2020

@sharon-samson I've relase v2.0.0 with a new template for LinkedIn. It looks like LinkedIn now only supports a button via JS, with no possibility to customize the appearance.

@Mgeethabhargava
Copy link

still linkedin url is not working

@fcurella
Copy link
Owner

@Mgeethabhargava Could you expand on how it's not working? What error are you getting?

If you have time to work on a Pull Request, I'll be happy to review it :)

@Mgeethabhargava
Copy link

href link is not creating on html as implemented by documentation

@goromachine
Copy link

Hi, I'm having a problem related to linkedin sharing only and it's about arguments. I'm just copy pasting the examples from the docs and when using the linkedin example with my object I'm getting the following:

Request Method: | GET
url: http://392a6a461628.ngrok.io/es/
Django Version: 2.2.12
Exception Type: ValueError
Exception Value: not enough values to unpack (expected 2, got 1)
Exception Location: /Volumes/Archivos/work/i4b/venv/lib/python3.6/site-packages/django_social_share/templatetags/social_share.py in linkedin_locale, line 149

The error is during template rendering:

In template /Volumes/Archivos/work/i4b/venv/lib/python3.6/site-packages/django_social_share/templates/django_social_share/templatetags/post_to_linkedin.html, error at line 2

And is remarking with red the following part of the code:

{{ LANGUAGE_CODE|linkedin_locale }}

I'm using this code on my template:

{% post_to_linkedin project %}

Does anyone had the same problem and know the answer or it?

Thank you.

@fcurella
Copy link
Owner

fcurella commented Jan 6, 2021

@goromachine what's the value of {{ LANGUAGE_CODE }} in your case?

@goromachine
Copy link

I'm using internationalization and I'm using the following languages. None of them seems to be working.

LANGUAGES | (('en', 'English'), ('es', 'Spanish'))

@fcurella
Copy link
Owner

fcurella commented Jan 7, 2021

@goromachine I've released a new that should fix your issue. Could you give it a try?

@goromachine
Copy link

Thank you! that seems to fix the problem I had.
When using ngrook the share works fine. I'll try it on AWS and if anything is wrong I will open a new issue. Now everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants