Skip to content

Instantly share code, notes, and snippets.

@silverwolfceh
Created June 13, 2020 04:41
Show Gist options
  • Save silverwolfceh/afc2d69c6f3bffe62636c2c8f486ed3d to your computer and use it in GitHub Desktop.
Save silverwolfceh/afc2d69c6f3bffe62636c2c8f486ed3d to your computer and use it in GitHub Desktop.
Shared on v4u
foreach ($row as $key=>$r) {
$headers = [
"accept-language" => "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
"content-type" => "application/x-www-form-urlencoded",
"cookie" => $r['cookie'],
"origin" => "https://www.facebook.com",
"sec-fetch-dest" => "empty",
"sec-fetch-mode" => "cors",
"sec-fetch-site" => "same-origin",
"user-agent" => "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36",
"viewport-width" => "1366",
];
$body = [
"d" => '{"pps":{"m":false,"pf":9999,"s":"playing","sa":9999},"ps":{"m":false,"pf":9999,"s":"playing","sa":999999},"si":"","so":"permalink::tahoe","vi":"1567060393454619","tk":"","ls":true,"pc":true}',
"__user" => $r['fbid'],
"__a" => "1",
"__dyn" => "999999999999999999",
"__csr" => "",
"__req" => "75",
"__beoa" => "0",
"__pc" => "PHASED:DEFAULT",
"dpr" => "1",
"__rev" => "1001912121",
"__s" => "99999999999999",
"__hsi" => "6809081207004245081-0",
"__comet_req" => "0",
"fb_dtsg" => $r['fb_dtsg'],
"jazoest" => "22089",
"__spin_r" => "1001912121",
"__spin_b" => "trunk",
"__spin_t" => time()
];
$requests[] = new \GuzzleHttp\Psr7\Request('POST', 'https://www.facebook.com/video/unified_cvc/', $headers, http_build_query($body));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment