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

All pages should have OG metadata, for social sharing #303

Open
joeytwiddle opened this issue Mar 19, 2021 · 10 comments
Open

All pages should have OG metadata, for social sharing #303

joeytwiddle opened this issue Mar 19, 2021 · 10 comments

Comments

@joeytwiddle
Copy link

joeytwiddle commented Mar 19, 2021

When people share links in social media, some of them are very plain, and do not become an attractive card with an image.

For example in Telegram (and WhatsApp), there is no image, just a boring blue text link:

Screenshot_20210319_043855

What I wish for: When sharing on social media, there should be enough metadata provided for the service to generate an attractive thumbnail with a title.

For example, something like this:

Screenshot_20210319_043702

Even if we don't use an image specific to the conference, any image is better than no image. (Eventyay's logo would be good enough, if no other image was available.)


This page on CSS-Tricks explains that the following tags are needed:

<meta property="og:title" content="European Travel Destinations">
<meta property="og:description" content="Offering tour packages for individuals or groups.">
<meta property="og:image" content="http://euro-travel-example.com/thumbnail.jpg">
<meta property="og:url" content="http://euro-travel-example.com/index.htm">
<!-- These also work for Twitter -->

These tools can help to test if it's working:

I tested with this link: https://eventyay.com/e/fa96ae2c/schedule But ideally this should be done for all pages. Because a user may share any page. And it's (almost?) always desirable to make the shared link clear and attractive.

@iamareebjamal
Copy link
Member

Related fossasia/open-event-frontend#6106

@rohit-raje-786
Copy link

@joeytwiddle I test the link https://eventyay.com/e/fa96ae2c/schedule on https://cards-dev.twitter.com/validator but it is displaying this-
image

@rohit-raje-786
Copy link

@joeytwiddle Can i work on this issue?

@joeytwiddle
Copy link
Author

@rohit-raje-786 It's not really my decision, but I have no objections. 😄

Some things to consider:

  • How can we write it so that a page can opt-in to showing a better image in future, if it has one?

  • Perhaps we can add the code to head.hbs and use this.model.openGraphImage if it is available.

@tanay123456789
Copy link

working on this issue.

@spy-1234
Copy link

Hey, I would like to work on this issue

@mariobehling
Copy link
Member

Please go ahead.

@therohit777
Copy link

Hey , wanna work on this issue please assign it to me

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

We don't assign issues to external contributors. Please comment that you're working on the issue after checking that no one else is, and then send a pull request for it. Thank You!

@therohit777
Copy link

ok

@pavnesh-c pavnesh-c transferred this issue from fossasia/open-event-frontend Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment