Open Rixot opened 9 years ago
Which version of this library are you using?
0.5.5 On Sep 22, 2015 00:26, "Elliot Chance" notifications@github.com wrote:
Which version of this library are you using?
— Reply to this email directly or view it on GitHub https://github.com/Lusitanian/PHPoAuthLib/issues/421#issuecomment-142136723 .
Late reply, but maybe it will help others. The cause is probably invalid settings of credentials (if you based on example)
$credentials = new Credentials(
$servicesCredentials['instagram']['key'],
$servicesCredentials['instagram']['secret'],
'<ABSOLUTE_URI>' // $currentUri->getAbsoluteUri() add GET params and that is causing this problem
);
so replace $currentUri->getAbsoluteUri() with EXACT uri as you configured in your application and it should work.
I am actually having this problem as well on Instagram only, and tried using the absolute URI. Getting the same error as the OP.
$credentials = new Credentials(
getenv('INSTAGRAM_APP_KEY'),
getenv('INSTAGRAM_APP_SECRET'),
getenv('INSTAGRAM_ABSOLUTE_URI')
);
Edit This was mostly likely to a bug on instagram for the past 24 hours. Seems fixed.
Hi,
I'm using this library for a number of services including Instagram, but I'm having trouble with Instagram and
requestAccessToken()
:As far as I can tell, the request body is correct:
The client ID, client secret and redirect URI are all correct and match the application credentials. I know the HTTP client in this library also defaults to making POST requests, so as far as I can tell, I'm doing everything correctly and the workflow matches the one outlined in the Instagram docs.
Note that I have a working implementation of Twitter auth using the same library in the same project. Both are handled by the same class method, which I based on the examples:
Any ideas?