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

website : create "Link preview" for applications that support it like Telegram, Twitter, iMesssages #14

Open
XandrexOSM opened this issue Aug 30, 2023 · 2 comments

Comments

@XandrexOSM
Copy link
Contributor

current behaviour :
https://openbanners.org/banner/find-machina-girl-in-mizu-4e27

There is no preview in Telegram for example :
image

Expected behaviour :
there is a preview, at least the image and the title.
bonus: add additinal info (size, location, and others)

Here is an example from BG :
image

@XandrexOSM
Copy link
Contributor Author

XandrexOSM commented Aug 30, 2023

example for this banner : https://openbanners.org/banner/find-machina-girl-in-mizu-4e27

Adding the following HTML META elements in the HEAD is enough :

<meta property="twitter:card" content="summary_large_image"/> <meta property="og:type" content="article"/> <meta property="og:title" content="Find MACHINA Girl in MIZU"/> <meta property="og:description" content="36 Missions, 20 km Mizunami, Gifu, Japan"/> <meta property="og:url" content="https://bannergress.com/banner/find-machina-girl-in-mizu-4e27"/> <meta property="og:image" content="https://api.bannergress.com/bnrs/pictures/ddd62669ef8a2c012beb0c09275bd69e"/>

@XandrexOSM
Copy link
Contributor Author

all info relative to the banner are accessed currently in :
/src/components/BannerDetailsCard.js .

I don't know how to use them to create new META in the webpage.

I know how to do it in javascript (if I had to make a user script in my browser), but I have reached a knowledge barrier here. I see strings without their delimiters, for instance. @michaelkexpleo can you point me to some documentation, please? I'll be glad to RTFM.

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

1 participant