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. }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报