After authentication facebook app redirecting my inner page to HTTP despite it is https://apps.facebook.com/myappname
i provide redirect_uri to http://mysite.com/welcome.aspx
how can i manage it to if http then http else https???
After authentication facebook app redirecting my inner page to HTTP despite it is https://apps.facebook.com/myappname
i provide redirect_uri to http://mysite.com/welcome.aspx
how can i manage it to if http then http else https???
Starting from 1. October 2011. Facebook forced usage of HTTPs protocol for communication with 3th party applications. I would recommend using HTTPs even if it's possible usage of HTTP, this method will ensure no Security Exceptions or warnings will be show users access your application... so redirect URI should be https://mysite.com/welcome.aspx, of course server would need to support protocol, and have certificate, at least self-signed for testing.
if( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ) {- Igy