I'm checking if Facebook users don't like a page. If so, the code displays the user's name and an invitation message to "Like it"; if not, it displays the "incentive landing page". However, I just get the first part: the code doesn't show the "incentive" when users hit the Like button. The code looks like this:
<?php if(!$like_status): ?>
<?php if ($me): ?>
<div id="name">Hola <?php echo $me['first_name']; ?></div> //Everything works fine.
<?php endif; ?>
// Display graphics... Everything works fine.
<?php else : ?>
//Page with the incentive... This does not work when the nested if is present.
<?php endif; ?>
If I get rid of the nested if (the one that displays the user's name), everything works fine. Any ideas?
:is perfectly fine. @Byktor what is the value of the like_status;:should be{}. To me, that looks hideous :)