Another Facebook Canvas App HTTPS migration tip

If you follow the way how the PHP SDK detect whether the user is accessing your canvas app by HTTP or HTTPS, it may be still failed in your environment especially if you are using shared server / web hosting.  (For details, see http://www.fb-developers.info/blog/2011/https-migration-a-tip-for-you-if-php-sdk-failed-in-your-environment/.)

In such as case, try to check that by using the follwing PHP variable:

$_SERVER['HTTP_REFERER']

I hope this helps.

This entry was posted in Development Tips and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *