askNivi

AskNivi Integration Kit v0.1b: Messenger Plugin Example


Facebook plugin integration Download

Integration Steps

  • Step 1

    • Open website main index.html

  • Step 2

    • Add the following script tag in your HTML tag inside the head tag

  • Step 3

    • {{scriptUrl}}

Pass ref (keyword) parameter with URL

Assuming that our destination URL is https://example.com

Need to pass keyword with this URL then just need to pass

https://example.com?ref={keyword}

(Please note the syntax {keyword}. Here you will pass the value for the parameter "ref". )

Finally usrl look like https://example.com?ref=covid19

Instructions and Troubleshooting Tips
  • Instructions

    • Whitelisted the domain name at Facebook page settings
    • Make sure Website is Served over HTTPS.
    • If multiple Facebook SDK are added, it may not work as expected. Especially When both sdk are in different languages or in different version. In this case – try uninstall the other source that add’s Facebook sdk and test ).

  • Troubleshooting Tips

    • If you see a console error like "Refused to display *** in a frame because an ancestor violates the following Content Security Policy directive: ***", check that the domain of the page the plugin is being rendered on has been whitelisted. Also make sure you didn't set the Referrer-Policy header to no-referrer.
    • The Firefox Facebook Container Add-On prevents the plugin from showing up. Remove the add on if you want the plugin to render.
    • Firefox desktop private browsers (version 63 and above) and Firefox mobile browsers block content tracking by default which will prevent the plugin from rendering. Turn off content blocking (click the gray shield in the search bar) to see the plugin render.