dourao3960 2012-07-11 06:09
浏览 22
已采纳

如何查找应用程序是在facebook内还是在facebook外运行

How can we find using PHP or Javascript if the facebook app is running within Facebook or running outside of Facebook as a Website. Am not sure what should be the criterion to check?

  • 写回答

2条回答 默认 最新

  • dqm88684 2012-07-11 06:20
    关注

    Did some checking. The answer below works:

    if(isset($_REQUEST["signed_request"]){
    // Opened in facebook
    }else{
    
    //opened outside facebook.
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?