i want your help guys! first of all sorry for my bad english knowladge!
so now about my problem!
i have my own CMS where i have some posts there and i want to parse if
i have image in post i parse first image and put it in the meta og:image, i did it no problem but i olso parse youtube links, if i have some youtube iframe embed code there i want to parse this link and get youtube ID and then put this Id in this link
so i did parser and i get youtube ID but problem is a ,when i
put it in the link in sourse code it is display normally but when i go in facebook Open Graph Object Debugger and check this link
debugger says that i have no ID in link
one important thing is that in my CMS i use
[code=php]ob_start();
function to display values in .tpl extension files, (i`m replacing values to my own codes like this
[code=php]$value = [value]
)
here is my codes maybe help you understand this situation!
it is in source code
[code=html]<meta property=”og:image” content=”http://img.youtube.com/vi/kjI70L/maxresdefault.jpg” />
<meta property=”vk:image” content=”http://img.youtube.com/vi/kjI70L/maxresdefault.jpg” />
it is facebook debug what say
[code=html]Meta Tag <meta property=”og:image” content=”http://img.youtube.com/vi/HERE MUST BE YOUTUBE ID BUT NOT SHOWING/maxresdefault.jpg” />
Meta Tag <meta property=”vk:image” content=”http://img.youtube.com/vi/HERE MUST BE YOUTUBE ID BUT NOT SHOWING/maxresdefault.jpg” />
this is my small part of code where i put variable in thumbnail url:
[code=php]preg_match(‘/d/(w+)/’,$tubeurl,$img); //PARSE YOUTUBE LINK AND GET ALL IFRAME EMBED YOUTUBE ID
$youtube_id = $img[1]; //GET FIRST YOUTUBE ID
$img_path = “http://img.youtube.com/vi/”.$youtube_id.”/maxresdefault.jpg”; // PUT VARIABLE IN CODE
is any idea about this problem ? i have worked around this about 11 hour without rest but can`t make it work! so i really want your help .
P.S if something i wrote wrong here please ask me i will explain it !