How to change HTTPS to HTTP in Facebook via an Application

1.5k Views Asked by At

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?

2

There are 2 best solutions below

1
On BEST ANSWER

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();
}
0
On

You app inside iframe and you know what url of parent page with your app without https.

Do this js in iframe on onload or onclick

window.top('http://needed_url');