-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest3.php
More file actions
41 lines (29 loc) · 1.83 KB
/
test3.php
File metadata and controls
41 lines (29 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
$wp_automatic_fb_xs = "30:d6YMoY1x0m181Q:2:1579014395:-1:-1::AcVFHgISyus5UBtCjfXjh1zWl116zHkD7vUdDnb2OA";
$wp_automatic_fb_cuser = "100024318878767";
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.facebook.com/sengabz/posts/3753754574639000");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$headers = array();
$headers[] = "Authority: www.facebook.com";
$headers[] = "Cache-Control: max-age=0";
$headers[] = "Upgrade-Insecure-Requests: 1";
$headers[] = "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36";
$headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
$headers[] = "Sec-Fetch-Site: same-origin";
$headers[] = "Sec-Fetch-Mode: navigate";
$headers[] = "Sec-Fetch-User: ?1";
$headers[] = "Sec-Fetch-Dest: document";
$headers[] = "Accept-Language: en-US,en;q=0.9,ar;q=0.8";
//$headers[] = "Cookie: sb=EQ4cXBTYxWz42BOz9wcRBk3Y; datr=tA4cXFLTAFhYujkzNdMZCi4O; _fbp=fb.1.1597929730796.250015084; locale=en_US; wd=1280x649; c_user=1475120237; spin=r.1002657250_b.trunk_t.1599946542_s.1_v.2_; presence=C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1599990967479%2C%22v%22%3A1%7D; xs=2%3A2CFvwwPh6OYlMw%3A2%3A1599946542%3A20445%3A6570%3A%3AAcWHKVwZMsqJiWEcStOvD2eCwHMnVihxfTXoR6ZHIA; fr=0FzSLpwkcTm4xV4v6.AWV9AsSUDyFPUI5qSD3ut8xyUHc.BY8phD.Ft.F9c.0.0.BfXjrr.AWXsDbEu";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt ( $ch, CURLOPT_COOKIE, 'xs=' . $wp_automatic_fb_xs . ';c_user=' . $wp_automatic_fb_cuser );
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
echo $result;
?>