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

Twitter not picking up OG tags #82

Closed
simpleshadow opened this issue Jun 19, 2019 · 6 comments
Closed

Twitter not picking up OG tags #82

simpleshadow opened this issue Jun 19, 2019 · 6 comments

Comments

@simpleshadow
Copy link

simpleshadow commented Jun 19, 2019

Super grateful for the package @garmeeh!

I see you mention in a few issues (#14) that Twitter uses the OG tags but it's not.

Would be good if next-seo allowed setting of any OG tag provided so we can provide tags as necessary.

@garmeeh
Copy link
Owner

garmeeh commented Jun 19, 2019

Hey @simpleshadow, thanks 😄

V2 will have the option to add additional tags. Because of breaking changes in V2 I am thinking about adding the "missing" twitter tags in V1.

@garmeeh
Copy link
Owner

garmeeh commented Jun 19, 2019

Can you share your site or example of the meta tags rendered for the issue you are having?

@simpleshadow
Copy link
Author

simpleshadow commented Jun 19, 2019

As an example — https://coreygwin.com/newsletter.

I ended up using next/head to implement the additional meta twitter:* tags to get the title, description, and image working on Twitter.

Look forward to V2! :)

@garmeeh
Copy link
Owner

garmeeh commented Jun 19, 2019

Thanks. Yeah from looking at that removing the twitter:* tags and adding the equivalent og:* ones should work. On my own personal site I only use og:* and it shares on Twitter as expected.

Not too sure why it wasn't working for you.

@garmeeh garmeeh closed this as completed Aug 19, 2019
@swilgosz
Copy link

swilgosz commented Jun 3, 2021

I've the same issue in my https://hanamimastery.com articles links. Twitter (and reddit) - does not pick-up the og:images - while all the facebook-related media (pinterset, instagram, facebook), even LinkedIn - have No issues at all.

Does anyone have an idea why this could be happening?

@swilgosz
Copy link

swilgosz commented Jun 3, 2021

I've solved it! for anyone encountering this issue in the future, In my case, it was related to the fact, that I"ve used the relative path in the image instead of URL prefixed with a host. After changing this to absolute URL of the image, twitter started to behave as expected.

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

3 participants