开发者

detect whether in facebook environment or not

开发者 https://www.devze.com 2023-03-22 21:13 出处:网络
I am developing a Facebook page and a website which is going to serve its contents to the Facebook page. I am using Zend Framework.

I am developing a Facebook page and a website which is going to serve its contents to the Facebook page. I am using Zend Framework.

In order to use only one controller both for the website and the Facebook page, I would like to find some way to determine if the c开发者_如何学Pythonurrent user is navigating from Facebook or from the website. Thus, to hide some data if from Facebook and show other if from website.

Which is the best way to do this?


$_SERVER['HTTP_REFERER'];

If that doesn't answer your question I don't understand what you mean with "navigation from".

0

精彩评论

暂无评论...
验证码 换一张
取 消