Search code examples
facebookfacebook-graph-apifacebook-javascript-sdkfacebook-likebox

How to Hide Facebook Page Plugin if the User Already Liked the FB Page


I know about html,css, and javascript so no worries. I want to hide my facebook page plugin if the users already "Liked" my facebook page. Is this possible?

Please help me thank you so much.


Solution

  • It is not allowed to do that:

    Don’t obscure or cover elements of social plugins.

    Source: https://developers.facebook.com/policy/#socialplugins

    Also, like gating is not allowed and users should always be able to unlike something at the same place where they liked it.