I'm creating a REST API for users to register or login in my app. So mobile app will be sending me access token for each service so how can i set access token directly to get user details from respective platform example:
$eauth = Yii::$app->eauth->getIdentity("facebook");
$eauth->setAccessToken(/* Facebook Access Token*/);
$eatuh->getAttributes(); // which has to return Users details.
I'm creating a REST API for users to register or login in my app. So mobile app will be sending me access token for each service so how can i set access token directly to get user details from respective platform example: