ammarfaizi2/facebook

This package is abandoned and no longer maintained. No replacement package was suggested.

2.0 2018-01-08 15:02 UTC

This package is not auto-updated.

Last update: 2018-08-19 15:16:39 UTC


README

Demo

Silahkan mencoba demonya melalui URL ini. https://facebook.teainside.ga

Cara Kerja

Melakukan request ke https://m.facebook.com sesuai dengan request uri dan method yang direquest oleh client kemudian menampilkan hasilnya kepada client.

Cara Pemakaian

git clone https://github.com/ammarfaizi2/Facebook
cd Facebook
composer install

Contoh Code

<?php

require __DIR__ . "/vendor/autoload.php";

$cookiefile = "test"; // beri nama cookie

// parameter kedua diberi boolean true artinya berjalan sebagai router (butuh rewrite url).
$app = new Facebook\Browser($cookiefile, true);

// berikan 403 Forbidden pada url tertentu.
$app->prohibitURL(function ($url) {
	return
		strpos($url, "messages") !== false;
});

// jalankan
$app->run();

License

MIT