How to know if my page is running in a facebook iframe or not

后端 未结 6 2045
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 09:51

I\'m currently developing a site which runs standalone and as a facebook app on an iframe I was wondering what whold be \"best practice\" for checking if my page is ran in a

6条回答
  •  忘掉有多难
    2020-12-30 10:25

    $signed_request = $_POST['signed_request'];
    
    if(empty($signed_request))
          die('No direct access.');
    

提交回复
热议问题