Facebook登录Iframe

Facebook登录Iframe,facebook,iframe,facebook-login,facebook-sdk-3.1,Facebook,Iframe,Facebook Login,Facebook Sdk 3.1,我正试图通过IntelXDK开发的应用程序中的Iframe登录Facebook。 问题是页面超出了Iframe。 在应用程序中,我已经 <iframe style="overflow:hidden;height:100%;width:100%; position:fixed; margin-left:-10px;" height="100%" width="100%" frameborder="0" src="http://...."></iframe> face

我正试图通过IntelXDK开发的应用程序中的Iframe登录Facebook。 问题是页面超出了Iframe。 在应用程序中,我已经

<iframe style="overflow:hidden;height:100%;width:100%; position:fixed; margin-left:-10px;" height="100%" width="100%" frameborder="0" src="http://...."></iframe>   

facebook登录后,我如何才能获得留在Iframe中的权限?

您必须使用Cordova
InAppBrowser
在HTML5打包应用程序中登录facebook,您可以使用此jquery插件登录facebook oauth:

这是我的工作

 var paramsLocation=window.location.toString().indexOf('?');
  var params="";
  if (paramsLocation>=0)
    params=window.location.toString().slice(paramsLocation);

top.location = 'https://graph.facebook.com/oauth/authorize?client_id=MYID&redirect_uri=http://MYURL';
$.oauth2({
    auth_url: 'https://www.facebook.com/dialog/oauth',
    response_type: 'token',
    client_id: 'CLIENT-ID-FROM-FACEBOOK',
    redirect_uri: 'http://www.yourwebsite.com/oauth2callback',
    other_params: {scope: 'basic_info', display: 'popup'}
}, function(token, response){
    makeAPICalls(token);
}, function(error, response){
    alert(error);
});