facebookfacebook-graph-apifacebook-php-sdkx-facebook-platform

How to change HTTPS to HTTP in Facebook via an Application


I want to develop an App in FB which should make HTTPS browsing impossible for fb users. Or, the app must run in HTTP without SSL. Can anyone here help me? please?


Solution

  • Shouldn't you do exactly the opposite? Why? Never mind...

    In PHP:

    // Enforce http
    if (substr(AppInfo::appURL(), 0, 7) != 'http://') {
        header('Location: http://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
        exit();
    }