Thursday, 11 June 2020

how to fetch the meta tags using php

<?php
$url = "https://www.domain.com/";
$metas = get_meta_tags($url);
echo "<pre>"; print_r($metas); echo "</pre>";
?>
<?php
$description = $metas['description'];
$keywords = $metas['keywords'];
$rating = $metas['rating'];
?>

create youtubeto fb video

ist get the fetch the data like $.get('http://www.guardian.co.uk/culture/2012/jun/21/jimmy-carr-apologises-error-tax',
function(data) { $(data).find('meta[name=adescription]').attr("content"); }); get the meta tags and make youtubetofb videos get the tags and youtube id using substr, and get the bigger image, use this fb:video, creat an html file with this and show that to use

No comments:

Post a Comment