Facebook JS SDK: display oAuth dialog in iframe

I'm trying to display a Facebook UI dialog inside my iframe application, so that I can get an extended resolution that we don’t have right now. This was easily achieved using the old SDK. However, using the new library, I get an iframe dialog on Facebook that appears modally but never stops loading. Changing the method to "page" means that I get a browser popup that simply says "An error has occurred." My code is:

var attachment = {
    display: 'iframe',
    method: 'oauth',
    scope: perms,
    access_token: '<?php echo $this->accessToken; ?>' // this is definitely valid access token         
};
FB.ui(attachment, function(response){
    pr(response);
});

I hope this is possible using the new SDK, the documents, of course, claim to be iframea valid display option.

Thanks in advance.

WITH

+5
2

. ( bugtracker " FB.ui" .) - FB.login FB.ui. , iframe, .

0

All Articles