Facebook PHP SDK 5: Extending classes -
i'm newbie classes (worse namespaces, etc.) know must create facebookmyclass.php class main classes ( autoload.php , facebook.php , facebookapp.php , etc.), prototype: <?php // guess namespace facebook; // must 'use' or extending other class(es)? // use ; class facebookmyclass extends facebook { // have "re-declare" parent's vars? private $my_private_var; public $my_public_var; private $access_token; // main thing, think, how class constructed // public function __construct(array $config = []) { public function __construct($id, $secret) { // work? need parameters? parent::__construct(); } public function accessparentprotectedvars($idfanpage) { // how can call/link facebook object/request/response? $object = $this->get('/' . $idfanpage . '/albums?fields=name,id', $this->access_token); } private function gettokens($params = []) { // code... $this->access_token = '......