As you know, Facebook is filtered in many countries, and if we put a “Like” button in our page, they will see a “ACCESS DENIED” message form their internet provider instead of the Like button. so the question is, can I detect if Facebook is viewable by the user or not? so I just show the Like button if the users have access to Facebook and it’s not filtered.
Thanks
Test if the domain
www.facebook.comis accessible by loading thefavicon.icoand if so, show the iframe: