When you scan a parametric code without having the bot, and click 'Get Started', the referral ref is ignored and the message is treated as simply a postback. This loses context.
Change order of message parsing on incoming message.
{ "object": "page", "entry": [ { "id": "624218044111111", "time": 1493736336711, "messaging": [ { "recipient": { "id": "624218044111111" }, "timestamp": 1493736336711, "sender": { "id": "1439469919111111" }, "postback": { "payload": "Start", "referral": { "source": "MESSENGER_CODE", "type": "OPEN_THREAD", "ref": "my-referral-payback" } } } ] } ] }
When you scan a parametric code without having the bot, and click 'Get Started', the referral ref is ignored and the message is treated as simply a postback. This loses context.
Change order of message parsing on incoming message.
{ "object": "page", "entry": [ { "id": "624218044111111", "time": 1493736336711, "messaging": [ { "recipient": { "id": "624218044111111" }, "timestamp": 1493736336711, "sender": { "id": "1439469919111111" }, "postback": { "payload": "Start", "referral": { "source": "MESSENGER_CODE", "type": "OPEN_THREAD", "ref": "my-referral-payback" } } } ] } ] }