I want to develop a Facebook connect application that can operate both inside a Facebook canvas or standalone.
Can I check if the user is using Facebook canvas / not using the official Facebook PHP client library?
Thanks, Andree
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In case of a Canvas page, Facebook will pass the client’s IP address in an additional HTTP header called
X-FB-USER-REMOTE-ADDR.http://wiki.developers.facebook.com/index.php/Your_callback_page_and_you
If it’s set, you’re on Facebook.
A hacker could also send this header, and that could result in unexpected behaviour from your app when outside Facebook.