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

Enhancement: Social share image #23

Open
sunilguptasg opened this issue Sep 2, 2022 · 5 comments
Open

Enhancement: Social share image #23

sunilguptasg opened this issue Sep 2, 2022 · 5 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@sunilguptasg
Copy link

Is there a way to create a social share image for posts, as well as a default image.

There is a description of social share with Gatsby here: https://www.maxpou.fr/generate-social-image-share-with-gatsby

@daiyanze
Copy link
Contributor

daiyanze commented Sep 4, 2022

Hi @sunilguptasg
I think we lack of the "twitter:image" meta tag in our SEO component. Could be very easy to fix.

As for your requests, allow me confirm if the following behavior meets your demand.

When sharing post to social (twitter)
Post image as the social share image,
if there's no post image, "default image" shall take place of it.

@daiyanze daiyanze added the enhancement New feature or request label Sep 4, 2022
@sunilguptasg
Copy link
Author

Screenshot 2022-09-05 000617

Its not just twitter - see the screenshot. the first link is made with pitayan - WhatsApp cannot get info or an image, while it does so for linkedin...

@daiyanze
Copy link
Contributor

Hi @sunilguptasg! Sorry for the late response. I'll be working on this issue today. Hope it's not too late for you.

@daiyanze daiyanze self-assigned this Sep 15, 2022
@daiyanze daiyanze added the bug Something isn't working label Sep 15, 2022
@sunilguptasg
Copy link
Author

Not at all. Thank you so much.

@daiyanze
Copy link
Contributor

I think the OGP implementation is not correct. This caused social share having no image. Let me further investigate this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants