You mean something like this: javascript - Facebook, possible to hide 'unlike' button once user has liked a website? - Stack Overflow
Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.