Use Facebook Access token via Android on Laravel Backend -


i have android app gets access token facebook sdk , further want send token php-laravel backend , retrieve user details.

i made httppost call param accesstoken accesstoken.gettoken() laravel , there retrieve it, token same when try login web interface , token.

then made call to
$user = socialize::driver('facebook')->getuser($request->token);

// manual function added abstractprovider class

public function getuser($token){     $state = null;      if ($this->usesstate()) {         $this->request->getsession()->set('state', $state = str::random(40));     }      $user = $this->mapusertoobject($this->getuserbytoken($token));     return $user->settoken($token);  } 

but error in log

[2016-01-16 07:30:24] local.error: exception 'guzzlehttp\exception\clientexception' message 'client error: get https://graph.facebook.com/v2.5/me?access_token=&appsecret_proof=/* proof here*/&fields=first_name,last_name,email,gender,verified resulted in 400 bad request response: {"error":{"message":"an active access token must used query information current user.","type":"oauthexce (truncated...) ' in c:\wamp\www\paypanel\paypanel\vendor\guzzlehttp\guzzle\src\exception\requestexception.php:107


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -