boo
Member
- Consent to Access & Modify
- I authorize Pabbly Support to log in to my account and make changes to the specified workflow for troubleshooting.
Hello Pabbly Community,
I am building an Instagram automation tool with Pabbly Connect and PHP, hosted on Railway. I’ve successfully received the authorization code, but I’m failing at the token exchange step.
■ The Error:
> "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request"
>
■ The Root Cause (Confirmed via Debug):
* Initial Request: Sent via https://dm-production-9567.up.railway.app/index.php
* The Issue: Since Railway uses a reverse proxy, my PHP server identifies the current protocol as http (non-SSL). Even when I hardcode the redirect_uri as https in my POST request, Meta continues to reject it as a mismatch.
■ My Question:
For those using Railway or similar proxy-based hosting for Instagram API integrations, how do you properly normalize the redirect_uri to satisfy Meta’s strict identity check? Is there a specific header (like X-Forwarded-Proto) or a Pabbly Webhook configuration that helps bridge this gap?
■ Debug Screenshots attached:
* Meta Error Message
* My internal redirect debug info
Thank you in advance!
I am building an Instagram automation tool with Pabbly Connect and PHP, hosted on Railway. I’ve successfully received the authorization code, but I’m failing at the token exchange step.
■ The Error:
> "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request"
>
■ The Root Cause (Confirmed via Debug):
* Initial Request: Sent via https://dm-production-9567.up.railway.app/index.php
* The Issue: Since Railway uses a reverse proxy, my PHP server identifies the current protocol as http (non-SSL). Even when I hardcode the redirect_uri as https in my POST request, Meta continues to reject it as a mismatch.
■ My Question:
For those using Railway or similar proxy-based hosting for Instagram API integrations, how do you properly normalize the redirect_uri to satisfy Meta’s strict identity check? Is there a specific header (like X-Forwarded-Proto) or a Pabbly Webhook configuration that helps bridge this gap?
■ Debug Screenshots attached:
* Meta Error Message
* My internal redirect debug info
Thank you in advance!
