Created
September 25, 2015 20:20
-
-
Save thiagoeliasr/bbbf5b4a9d1e70076473 to your computer and use it in GitHub Desktop.
Scrape new information from Facebook Linter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function try_debugger($url) | |
{ | |
$url = "https://graph.facebook.com/?id=". urlencode($url) ."&scrape=true&method=true"; | |
$ch = curl_init(); | |
curl_setopt($ch,CURLOPT_URL,$url); | |
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); | |
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,5); | |
$content = curl_exec($ch); | |
curl_close($ch); | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment