Facebook getAccessToken() returns app access token: works fine in one server but throws app access token in other. I have tried all the answers given in previous such questions. But doesn't seem to work.
<code>
$acces_token = $this->facebook->getAccessToken();
print_r($acces_token);
output:
app ID | app secret
</code>
The funny part here is the same code works in localhost and one of my servers. I recently got another server, and this thing doesn't work in this server.