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

Share image #66

Open
ehoxhaa opened this issue Sep 14, 2022 · 1 comment
Open

Share image #66

ehoxhaa opened this issue Sep 14, 2022 · 1 comment

Comments

@ehoxhaa
Copy link

ehoxhaa commented Sep 14, 2022

Hi i need to know if it is possible to post an image automatically in my tweet.

@AyimNelson
Copy link
Contributor

AyimNelson commented Jun 24, 2023

From the docs, django-social-share allows you to share the link of a page to other platforms.
If your SEO meta tags are configured properly in your HTML, sharing to Twitter will add the image found in the meta tag to your shared URL link.
Example;

<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content="/mages/post.png " />

This will add post.png image to the shared link banner on Twitter.

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

2 participants