Answer the question
In order to leave comments, you need to log in
Open Graph - who implemented it, have questions, how is it implemented for different pages of the site?
Hello.
Who did the Open Graph markup for social networks.
Today I got carried away, read various articles, etc., but they seemed to be copied under a blueprint.
I understood how to do it for the main one, but how to do it for other pages if I don’t have an html page, but a site with an admin panel.
Questions:
1) Is it important to stuff tags into html? like this
(<html lang="ru" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">)
. <meta property="og:title" content="<?= $title ?>"/>
and others where the description and url of the page, as I understand it, in order to do it for all pages, you need to make a code that determines which page we are on and so that the <meta property="og:url" content= " " />
url of the page I am on is automatically substituted in the field, is it better to do it? <meta property="og:image" content=" "/>
, let's say there is no picture on the main page and I stuffed a link there, made a picture, but what if there are pictures in the texts on other pages, then what to do with it? if we admit I want that on other pages the picture from content undertook. <meta name="twitter:title" content=" " />
<meta name="twitter:description" content=" " />
<meta name="twitter:url " content=" " />
<meta name="twitter:cart" content="summary" />
<html lang="ru" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
, it is important? <meta property="og:type" content="website" />
, instead of website, it’s different there. It’s also necessary to somehow define the page and substitute another input option for it in this field, well, plus insert the code that will display the picture in this tag <meta property="og:image" content=" "/>
, but it’s not clear how the dimensions will be determined ____), or better where there is a picture, stupid remove this meta <meta property="og:image" content=" "/>
. Answer the question
In order to leave comments, you need to log in
so that in the field 《meta property="og:url" content= " " /》 automatically substitute the url of the page on which I am, is it better to do this?
change the tag 《meta property="og:type" content="website" /》 instead of website, it's different.
if URL_Pathname = "/" then
Append
(Response_Message_Body,
" <meta property=""og:type"" content=""website"" />" & LF);
else
Append
(Response_Message_Body,
" <meta property=""og:type"" content=""article"" />" & LF);
end if;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question