As we post any url on facebook, it shows its meta-data(title, decription and thumbnail image), How can we achieve same thing in php or scripting language(javascript/jquery).
As we post any url on facebook, it shows its meta-data(title, decription and thumbnail
Share
I believe, Facebook simply parses the html code of the Website behind the link and looks for
<img />tags. You can then choose any of the found images as picture for your link.In PHP, you would fetch the websites HTML source via
Then use regular expressions to find those
<img />tags.