Can I pass query parameters to my callback URL?

I want pass query parameters to my callback URL. I tried adding it to my callback URL, but it didn't come through.

_oneall.push(['social_login', 'set_callback_uri', "https://myhost.com/callack.php?id=1234&val=xyz" ]);

I'm wondering if there is an option like this which would be appended to the callback URL:

_oneall.push(['social_login', 'set_callback_param', "id=1234&val=xyz" ]);

Best Answer

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Answer ✓
    Hi Jack,

    _oneall.push(['social_login', 'set_callback_uri', 'https://myhost.com/callack.php?id=1234&val=xyz']);

    This is actually the correct way to do it. Please note that our system sends a $_POST request to your callback file.
    You nevertheless need to extract your own values using $_GET, as they are appended to the url.

    $_GET['id] and $_GET['val'] should give you 1234 and xyz.

Answers

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.