Opening Facebook connection window via javascript?

When someone tries to enter my site via facebook, he is redirected to a page where he sees all the requested permissions and clicks to allow / deny them.

Is there a way to open this page as a multi-level window through javascript without leaving my site? For example, my website will be in the background and the facebook connection window will be above it.

Any ideas whatsoever?

+5
source share
3 answers

The answer is no. In addition, you cannot load the IFrame login page, as Facebook has a frame switch for this page.

, , OAuth. , "display" "page" ( : , iframe, touch wap). , "iframe". : " iframe, access_token" . , access_token, . IFrame.

, , "iframe" ( access_token).

+6

Facebook Connect , .

1) "" Facebook-Login

, img- a

href="<?= $facebook->getLoginUrl(...); ?>"
onclick="facebookPopup(this.href); return false"

2) Javascript

function facebookPopup (url) {
    popup = window.open(url, "facebook_popup",
"width=620,height=400,status=no,scrollbars=no,resizable=no");
    popup.focus();
        }

3) FB Connect "Landingpage"

php , , , , facebook-uid, , , . Javascript:

function CloseAndRefresh() 
    {
        window.opener.location.href = window.opener.location.href;
        window.close();
    }

<body onload='CloseAndRefresh()'>

URL URL- Login-Url (redirect_uri). , "display" = > "popup" URL- , " " -Dialog.

+3

.

, - iframe div, , Facebook - .

.: (

+2
source

All Articles