Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Facebook share meta tags outside of head?

Our websites article backend does not allow access to anything above </head> which prevents our writers from specifying shareable content with use of the facebook meta tags. Anyone know an alternative route of specifying the article image, title, and description of a shared article without accessing the <head>? My search yielded no results, my apologies if this has been answered.

like image 989
Cameron C Avatar asked Dec 29 '25 00:12

Cameron C


1 Answers

Can you give your writers a way to create meta tags in other separate pages, outside of your article backend?

The Facebook Open Graph meta tag content does not need to reside within the same page that the like button is rendered on. The shareable content (images/titles/descriptions) will be pulled from the meta content of the page referenced in the URL parameter of the Facebook button. So you could create separate pages corresponding to each of your articles that serve simply to supply the meta content for the Facebook news story post. The Facebook news story posts would still link back to your articles as long as the meta "og:url" in the placeholder file is set to your article url.

like image 51
Mac Avatar answered Jan 02 '26 13:01

Mac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!