Created
October 14, 2017 15:19
-
-
Save dovidezra/678465432bf7faec08ab5c00e41b13ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$user_id = "sharonlaker19"; | |
header("Content-Type: text/plain"); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://www.facebook.com/messages/t/$user_id"); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
if(curl_exec($ch) === FALSE) { | |
echo "Error: " . curl_error($ch); | |
} else { | |
echo curl_exec($ch); | |
} | |
curl_close($ch); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment