Facebook application, how to check if there is a Facebook canvas / standalone file inside using PHP?

I want to develop an application for connecting to Facebook, which can work both inside the Facebook canvas and offline.

Is it possible to check if a Facebook user uses canvas / does not use the official Facebook PHP client library?

Thanks Andri

+5
source share
2 answers

In the case of the Canvas page, Facebook will pass the client's IP address into an additional HTTP header with the name X-FB-USER-REMOTE-ADDR.

http://wiki.developers.facebook.com/index.php/Your_callback_page_and_you

If it is installed, you are on Facebook.

, , Facebook.

+3

HTTP_REFERER. "apps.facebook.com", Facebook.

0

All Articles