php - Share website content on facebook -
i design website using html , php , mysql , use open graph meta tag share website on facebook
<meta property="og:title" content="" /> <meta property="og:type" content="" /> <meta property="og:image" content="" /> <meta property="og:url" content="" /> <meta property="fb:admins" content="" />
i use meta tag in page news , essay , problem example want share 1 of website news on facebook , want share correct content , when try share , share content used in meta tag , want share news title, image , content..
my website work dynamically mysql , of website content image , text saved in database .
my question how dynamically change share content of separate page using open graph meta tag or thing .
i don't understand exacly want us. can vary depending on how site script work. must set og meta content how show page content. example:
<meta property="og:title" content="<?=$page['title'];?>" /> <meta property="og:type" content="<?=$page['type'];?>" /> <meta property="og:image" content="<?=$page['image'];?>" /> <meta property="og:url" content="<?=$page['url'];?>" /> <meta property="fb:admins" content="<?=$page['admins'];?>" />
Comments
Post a Comment