fossasia / open-event-next

Open Event Frontend "Next Version" with Vue.js
Apache License 2.0
1.52k stars 101 forks source link

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

Open joeytwiddle opened 3 years ago

joeytwiddle commented 3 years ago

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 commented 3 years ago

Related https://github.com/fossasia/open-event-frontend/issues/6106

rohit-raje-786 commented 3 years ago

@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 commented 3 years ago

@joeytwiddle Can i work on this issue?

joeytwiddle commented 3 years ago

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

Some things to consider:

tanay123456789 commented 3 years ago

working on this issue.

spy-1234 commented 3 years ago

Hey, I would like to work on this issue

mariobehling commented 3 years ago

Please go ahead.

therohit777 commented 3 years ago

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

github-actions[bot] commented 3 years ago

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 commented 3 years ago

ok