Facebook ユーザーがページを気に入らないかどうかを確認しています。その場合、コードはユーザーの名前と「いいね!」への招待メッセージを表示します。そうでない場合は、「インセンティブ ランディング ページ」が表示されます。ただし、最初の部分だけはわかります。ユーザーが [いいね] ボタンを押しても、コードには「インセンティブ」が表示されません。コードは次のようになります。
<?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 (ユーザーの名前を表示するもの) を取り除くと、すべて正常に動作します。何か案は?