Skip to content

Instantly share code, notes, and snippets.

@igorw
Created November 24, 2011 15:47
Show Gist options
  • Save igorw/1391643 to your computer and use it in GitHub Desktop.
Save igorw/1391643 to your computer and use it in GitHub Desktop.
Use Facebook PHP SDK in CLI.
<?php
require_once __DIR__.'/../vendor/facebook-php-sdk/src/base_facebook.php';
class CliFacebook extends BaseFacebook {
protected function setPersistentData($key, $value) {}
protected function getPersistentData($key, $default = false) {
return $default;
}
protected function clearPersistentData($key) {}
protected function clearAllPersistentData() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment