Twitter login seems to be working, but i get an error when I make any other request to the API.
The error I'm getting is:
Call to undefined method OAuth\OAuth1\Service\Twitter::refreshAccessToken()
The request to twitter is as follows: (nothing fancy)
Auth::user()->provider('twitter')->request('account/verify_credentials.json');
I saw this on the Readme but I'm not certain how I'd go about doing such a thing:
Note: Keep in mind it is possible for an access_token to expire. You can refresh a user's access_token by initiating a redirect to the getConnect action in the controller.
I did try:
Redirect::action('social-connect', array('twitter'));
and
Redirect::action('Mmanos\Social\SocialController@getConnect', array('twitter'));
(both were before the request to twitter) but neither worked.
I'm new to Laravel so this has left me quite stuck and any help would be greatly appreciated.
Thanks
Twitter login seems to be working, but i get an error when I make any other request to the API.
The error I'm getting is:
The request to twitter is as follows: (nothing fancy)
I saw this on the Readme but I'm not certain how I'd go about doing such a thing:
I did try:
and
(both were before the request to twitter) but neither worked.
I'm new to Laravel so this has left me quite stuck and any help would be greatly appreciated.
Thanks