when ever i try to read facebook page source they give some default page source
the title of default page stATES Incompatible Browser | Facebook..but the original title of index page is welcome to facebooK
the code used by me is this
PHP Code:
<?php
$url = "http://www.facebook.com";
$str = file_get_contents($url);
echo '<pre>';
echo htmlentities($str);
?>
its seems like facebok is blocking this type of interaction..if that is the case then is there any other way to get facebook page source out .......because i have treid it on other site
it works ok for it
Bookmarks