Open Philwn opened 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()
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); });
Hey @Philwn! Can you post the snippet of code that is accessing the sendRequest() method?
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); });