I am attempting to reveal content on my small website simply to individuals who like my facebook page. I have attempted severall lessons but not one of them work. The nearest I acquired was after this:

http://www.dejanlevec.com/2011/05/11/how-to-display-certain-page-content-only-to-users-who-have-liked-our-page-on-facebook/

I'm able to get results basically first dislike the page after which enjoy it around the facebook_test.php . As a result it does not identify basically already such as the page.

Discovering if your user loves online is a little more difficult compared to a Facebook page. You will need to setup a Facebook application and employ that in your website and also have the user authenticate while using application additionally to liking your page. After you have that reference to the consumer you can look at to ascertain if they're drenched in and also have loved your page. At that time you are able to display various kinds of content.

The additional step of needing to authenticate the consumer is most likely the reason why you aren't seeing this implemented on a lot of websites.

I've carried this out with javascript before using Facebook.Event.subscribe and edge.create as referred to below:

<script type="text/javascript"> 
  window.fbAsyncInit = function() {
    FB.init({appId: 'APP_ID_HERE', status: true, cookie: true, xfbml: true});
    FB.Event.subscribe('edge.create',
  function (response) {
     window.location = "http://redirectexamplehere.com";
  });
FB.Event.subscribe('edge.create',
function (response) {
  window.location = "http://redirectexamplehere.com";
});

  };
  (function() {
    var e = document.createElement('script');
    e.async = true;
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
//]]>
</script>

By doing this a person is going to be rerouted to wherever you specify upon them liking the page. Make sure to load the SDK first or it will not work.