Facebook messenger checkbox plugin is hidden
Facebook updated their docs:
The web plugin takes a
user_ref
parameter which is used as an identifier for the user. When the user finishes the flow, we will pass this identifier back to you to identify the user. This parameter should be unique not just for every user, but for every time the plugin is rendered. If the parameter is not unique, then the plugin may not render.
You have to generate a new user_ref
for every single render of the checkbox plugin.
Checklist to display CheckBox Plugin
use Production App Id (not the test one)- always regenerated
user_ref
- whitelist the domain in
origin
- use correct protocol in
origin
- http / https
Hi I'm trying to implement this and getting the same Hidden state in the console.
Is yours hidden until the user Confirms Opt in or is the checkbox visible on load of the webpage?
Thanks, Phil
Solved: Problem with Plugin was hidden
is because the messenger app is in the development mode and that's why when you have logged out from FB the checkbox won't show up on the page and it will be hidden because there is no authorized user session. But while you have logged in on FB as a developer, owner, tester of the app then the checkbox will show up on the page because then there is an authorized session.