Facebook Like URL data Extract Using PHP and Ajax

By: Prem Tiwari | Last Updated: | In: Facebook, Javascript & Ajax, PHP Tutorial


If you looking for extracting URL data like facebook or link data preview while typing the content. I have used PHP function to fetch the webpage content as a string and used PHP Domdocument object to extract the meta title and description part.

facebook-url

demo download.

HTML Code

Java Script Code Code

PHP Code

CSS Code

demo download.


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.



, , , , , , , ,