oauth-4-laravel
oauth-4-laravel copied to clipboard
Facebook Token Problem
When i use: $token = $facebookService->getStorage()->retrieveAccessToken('Facebook');
Error: Call to a member function getStorage() on a non-object
if i use this method: $token = $fb->requestAccessToken( $code );
it is returned Protected Array, i want to Token String to save my Database
Any Solution for Token as String form for save Database
Thanks
try with the below statement. It will fetch the accesstoken string for you.
$accessToken=$token->getAccessToken();
Just making sure I have this right... We should be using:
$fb->getStorage()->retrieveAccessToken('Facebook')->getAccessToken();