End of Like Gates

Facebook forbids collecting likes to allow page access
Last month we were working on creating a 'like gate' for our client - a system for that would allow to view the content when somebody like the page. To our surprise the system worked quite randomly - sometimes Facebook allowed to view the page after like, sometimes not. After some research we found out that new regulations from Facebook deny creating of 'like gates' ( https://developers.facebook.com/blog/post/2014/08/07/Graph-API-v2.1/ ). Now every page needs to be public or use special permission.

Tagi: 

The code works here: