开发者

Check if its the facebook canvas

开发者 https://www.devze.com 2023-01-11 08:49 出处:网络
I have a website which utilizes facebook integration. You can use it independently of FB.However, it also loads in FB through the can开发者_Go百科vas page. I want to load a different CSS file if the p

I have a website which utilizes facebook integration. You can use it independently of FB. However, it also loads in FB through the can开发者_Go百科vas page. I want to load a different CSS file if the page is being displayed on the canvas page then when it is displayed through going to it directly.

How can I check if the page loaded in the canvas page?


Check if the fb_sig_iframe_key parameter is in the querystring. PHP would be:

if($_GET['fb_sig_iframe_key']) // Include CSS Here
0

精彩评论

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