Closed ryanmark1867 closed 4 years ago
for dynamic JSON string builds (such as for scrolling carousel), need to check all strings to ensure they don't include quotes or double quotes since these will mess up JSON coherence. E.g. Rozat "Rusty" Sabich in the following example.
{"attachment":{"type":"template","payload":{"template_type":"generic","elements":[{ "title":"Indiana Jones and the Last Crusade(1989)","image_url":"https://image.tmdb.org/t/p/w342/4p1N2Qrt8j0H8xMHMHvtRxv9weZ.jpg","subtitle":"'Indiana Jones'","buttons":[ {"type":"web_url","url":"https://webviewfm.ngrok.io/","title":"Movie Details","messenger_extensions": "true","webview_height_ratio": "tall"},{"type": "postback","payload":"scroll command for harrison ford start 20 end 22","title": "Previous"}]},{ "title":"Presumed Innocent(1990)","image_url":"https://image.tmdb.org/t/p/w342/sE6tuclHXvrst1ZFAYwcPr1OT1L.jpg","subtitle":"'Rozat "Rusty" Sabich'","buttons":[ {"type":"web_url","url":"https://webviewfm.ngrok.io/","title":"Movie Details","messenger_extensions": "true","webview_height_ratio": "tall"},{"type": "postback","payload":"scroll command for harrison ford start 24 end 26","title": "Next"}]},]}}}
fixed for demo 1 issue Feb 29 - can now scroll past movie where Harrison Ford plays 'Ronny "the Donald" McDonald' or some such stuff.
for dynamic JSON string builds (such as for scrolling carousel), need to check all strings to ensure they don't include quotes or double quotes since these will mess up JSON coherence. E.g. Rozat "Rusty" Sabich in the following example.
{"attachment":{"type":"template","payload":{"template_type":"generic","elements":[{ "title":"Indiana Jones and the Last Crusade(1989)","image_url":"https://image.tmdb.org/t/p/w342/4p1N2Qrt8j0H8xMHMHvtRxv9weZ.jpg","subtitle":"'Indiana Jones'","buttons":[ {"type":"web_url","url":"https://webviewfm.ngrok.io/","title":"Movie Details","messenger_extensions": "true","webview_height_ratio": "tall"},{"type": "postback","payload":"scroll command for harrison ford start 20 end 22","title": "Previous"}]},{ "title":"Presumed Innocent(1990)","image_url":"https://image.tmdb.org/t/p/w342/sE6tuclHXvrst1ZFAYwcPr1OT1L.jpg","subtitle":"'Rozat "Rusty" Sabich'","buttons":[ {"type":"web_url","url":"https://webviewfm.ngrok.io/","title":"Movie Details","messenger_extensions": "true","webview_height_ratio": "tall"},{"type": "postback","payload":"scroll command for harrison ford start 24 end 26","title": "Next"}]},]}}}