Closed JCarlosR closed 6 years ago
Hi.
I am redirecting the users to the next login url: $loginUrl = $fb->getLoginUrl($permissions, url('/admin/posts/callback'));
$loginUrl = $fb->getLoginUrl($permissions, url('/admin/posts/callback'));
If I print it, I get:
https://www.facebook.com/v2.8/dialog/oauth?client_id=553974898124336&state=22ff3266dddb10b2b68c205e5ee2cf16&response_type=code&sdk=php-sdk-5.4.2&redirect_uri=https%3A%2F%2Ftombofans.com%2Fadmin%2Fposts%2Fcallback&scope=publish_actions%2Cuser_managed_groups
And after grants the permissions, the next error message appears:
The question is why? The redirect_uri is the same.
I was using $token = $fb->getAccessTokenFromRedirect();. I have changed it to $token = $fb->getAccessTokenFromRedirect(url('/admin/posts/callback')); and it is working.
$token = $fb->getAccessTokenFromRedirect();
$token = $fb->getAccessTokenFromRedirect(url('/admin/posts/callback'));
Hi.
I am redirecting the users to the next login url:
$loginUrl = $fb->getLoginUrl($permissions, url('/admin/posts/callback'));
If I print it, I get:
And after grants the permissions, the next error message appears:
The question is why? The redirect_uri is the same.