How to get current logged in user details in Twitter using API <p>I'm using Socialite to login using twitter and using Abrahams' TwitterOauth to make API working. In laravel, I've set API Key information as:</p> <pre><code>'twitter' =&gt; [ 'client_id' =&gt; '**************', 'client_secret' =&gt; '**************', 'access_token' =&gt; '***************', 'access_token_key' =&gt; '***************', 'redirect' =&gt; '***********', ], </code></pre> <p>To connect to Twitter I've used:</p> <pre><code>public function getTwitterConnection() { $this-&gt;connection = new TwitterOAuth(Config::get('services.twitter.client_id'), Config::get('services.twitter.client_secret'), Config::get('services.twitter.access_token'), Config::get('services.twitter.access_token_key')); } </code></pre> <p>Using Socialite, I'm able to make users login via their credentials. But while I try to access:</p> <pre><code>public function getCurrentLoggedInUser() { $this-&gt;getTwitterConnection(); return $this-&gt;connection-&gt;get("account/verify_credentials"); } </code></pre> <p>I'm getting the information of developer's twitter account i.e. mine. I think I'm not being able synchronize between Socialite and TwitterOauth. How can I fix this issue? Please suggest me the better way of getting the information of logged in user.</p>