Test FB preview

Can determine image type dynamically later, just wanted to test out to see if previews are full screen.
This commit is contained in:
Thomas Zarebczan 2022-02-23 18:17:08 -05:00
parent 17e3fcc27c
commit 3d23c7f78b
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -186,6 +186,10 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) {
head += `<meta name="twitter:site" content="@OdyseeTeam"/>`; head += `<meta name="twitter:site" content="@OdyseeTeam"/>`;
head += `<meta property="og:description" content="${cleanDescription}"/>`; head += `<meta property="og:description" content="${cleanDescription}"/>`;
head += `<meta property="og:image" content="${claimThumbnail}"/>`; head += `<meta property="og:image" content="${claimThumbnail}"/>`;
head += `<meta property="og:image:secure_url" content="${claimThumbnail}"/>`;
head += `<meta property="og:image:type" content="image/jpeg"/>`;
head += `<meta property="og:image:width" content="390"/>`;
head += `<meta property="og:image:height" content="219/">`;
head += `<meta property="og:locale" content="${claimLanguage}"/>`; head += `<meta property="og:locale" content="${claimLanguage}"/>`;
head += `<meta property="og:site_name" content="${SITE_NAME}"/>`; head += `<meta property="og:site_name" content="${SITE_NAME}"/>`;
head += `<meta property="og:type" content="website"/>`; head += `<meta property="og:type" content="website"/>`;