-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad Request in oauth #31
Comments
Hi @tracysailors |
Thanks for the reply! Yes, install works fine. The error occurs when reloading "oauth.php". I have my app URL set to point to "oauth.php", so anytime you load the app from Shopify. |
I see. You may have a redirect back to oauth.php then you can either store a permanent token exchanged for the temp one then do a header("location: ......") type of redirect to the nuts and bolts around line 31 of oauth.php. where the echo 'app installed successfully' I use the ohshopify php lib due to this one having not been updated in awhile. You may have better luck with that. This one has an HMAC issue I think. |
I changed to do a redirect with header() for now. Thanks! |
Hi , can you guys please help me, I am new in shopify app development |
looks like there is no access token being passed. Any more details to this. |
Hello, I'm receiving the following error in oauth.php. The install and app is working, but kicking back the following.
Any help is greatly appreciated! Thanks!
phpish\shopify\ApiException: [400] Bad Request (https://XXXXXXXX.myshopify.com/admin/oauth/access_token) in /nfs/c12/h04/mnt/220759/domains/XXXXXXXX/oauth.php on line 28 Array ( [method] => POST [uri] => https://XXXXXXXX.myshopify.com/admin/oauth/access_token [query] => Array ( ) [headers] => Array ( ) [payload] => Array ( [client_id] => XXXXX [client_secret] => XXXXX [code] => XXXXX ) )
The text was updated successfully, but these errors were encountered: