Asking facebook permissions dialog inside iframe
===

Im trying to put the facebook permissions dialog within an iframe, however not making much progress because of lack of Facebook documentation, and the undocumented hacks around web are not working any more. 

news.yahoo.com does something that i would like to emulate.

When you click on a news article it says login with facebook. After the initial oauth dialog to authenticate the user ( which does not ask for permissions), yahoo pop's another dialog from a yahoo URL which included the Permissions dialog within as an IFrame.

Does anybody know what API's can be used to accomplish this?

The fiddler trace indicates that the yahoo URL is calling:

the uiserver.php endpoint with the permissions.request method.

https://www.facebook.com/connect/uiserver.php?method=permissions.request&app_id=194699337231859&display=iframe&redirect_uri=https%3A%2F%2Fopen.login.yahoo.com%2Fopenid%2Fyrp%2Fsc_check&cancel_url=https%3A%2F%2Fopen.login.yahoo.com%2Fopenid%2Fyrp%2Fsc_check&perms=user_birthday%2Cuser_likes%2Cemail%2Cpublish_actions&response_type=code&locale=en_US

When i try to do this using FB's javascript SDK:
    FB.ui({ 
     method: 'permissions_request', 
     perms: 'read_stream,publish_stream,user_photos', 
     display: 'iframe' 
     },  
    function(response){ 
      alert("badfood");
     alert(response); 
    }); 

It goes to a different endpoint: facebook.com/dialog/permissions_request? ...

And I get a 500 server error from facebook without useful debug info.

Thanks