SammyK / LaravelFacebookSdk

Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
MIT License
692 stars 200 forks source link

facebook get requests result in error #160

Open Philwn opened 7 years ago

Philwn commented 7 years ago

As shown here: https://github.com/SammyK/LaravelFacebookSdk#get-user-info

I get a resulting error: Call to undefined method SammyK\LaravelFacebookSdk\FacebookFacade::sendRequest()

It states it is a wrapper for the facebook sdk so all sdk functions are available but any I try get the same error. What am i doing wrong?

Route::get('facebook', function(Facebook $fb) { try { $response = $fb->get('GET', '/page_id', [], env('FACEBOOK_APP_TOKEN', false), 'eTag', 'v2.2'); } catch (Facebook\Exceptions\FacebookSDKException $e) { // Failed to obtain access token dd($e->getMessage()); } print($response); });

SammyK commented 7 years ago

Hey @Philwn! Can you post the snippet of code that is accessing the sendRequest() method?