Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set featured image in non-wordpress

pasting wordpress url in fb status bring a featured image+some text
while when I put mine (core php site) url in fb status, it shows only text but picking no image while I have more than 10 images at that page
I googled a lot but almost all posts are wordpress related while I couldn't get how to make an image featured-image for a page on php/html (non-wordpress). is there some html tag or attribute or some other method?

like image 458
alamnaryab Avatar asked Oct 26 '25 03:10

alamnaryab


1 Answers

Use OpenGraph TAGs, especially og:image for the image!

Read more at https://developers.facebook.com/docs/sharing/best-practices

like image 186
Berriel Avatar answered Oct 28 '25 16:10

Berriel