Hi guys ..
Here I am going to share how to fetch/extract url datas like title , description and images from a website like facebook attach url module
I have used PHP curl to fetch the webpage content as a string. And I have used PHP Domdocument object to extract the meta title and description part.
Finally I have used preg_match_all function to fetch images from the webpage
here is the code below
Check out my latest facebook scripts
- Facebook Style Youtube Video Expander with JQuery – http://w3lessons.info/2013/05/08/facebook-style-youtube-video-expanding-with-jquery/
- Facebook Style Wall Script 3.0 – http://w3lessons.info/2013/04/21/facebook-wall-script-3-0-timeline-oauth-location-sharing-smileys-many-more/