FBML has been deprecated. What's the simplest replacement for fb:visible-to-connection
, which is used to show part a page only to fans?
Replacement for FBML fb:visible-to-connection
672 views Asked by ohho At
1
FBML has been deprecated. What's the simplest replacement for fb:visible-to-connection
, which is used to show part a page only to fans?
This is pretty easy to do in PHP (using the Facebook SDK). If you decode the
signed_request
data POSTed to your page, you can see if the user has liked the Page your app is on.If you decode the data (e.g. in PHP you can do:
print_r( $facebook->getSignedRequest() );
to print the decoded version), you will see something like:The
$response['page']['liked']
will be1
if the user has liked the page, and0
otherwise. You can then wrap your Fan Specific content around a conditional statement: