Facebook对话框没有显示到全高度? [英] Facebook dialogs are not displaying to there full height?

查看:223
本文介绍了Facebook对话框没有显示到全高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在外部网站(一种Facebook应用程序)上使用不同的对话框,例如发布Feed,发送应用程序请求等。早期所有对话框都正常显示,但是从过去几天来,我一直在体验显示问题作为对话框没有显示到完整的高度。

I am using different facebook dialog boxes on my external website(a kind of facebook application) for tasks like posting to feed, Sending app requests etc. Earlier all dialogs were displaying properly but from last couple of days I have been experiencing display issues as dialog are not displaying to there full height.

我已经在Chrome,Firefox和Safari浏览器上进行了测试,在所有地方都有同样的问题。我甚至问我的一些朋友检查那里的地方,结果他们也面对同样的。

I have tested on Chrome, Firefox and Safari browsers, at all places same issue.I even asked some of my friends to check at there places, as a result they are also facing the same.

这里是快照链接:

Here is the snapshot link:

这是一个apprequest对话框的代码,我使用: / p>

Here is the code to one apprequest dialog, I m using:

<body onLoad="warmup();">
<div id="fb-root"></div>
<script>

function sendRequest(type) {


var request = {
    method: 'apprequests',
    message: 'Hey! I Just Wanted You To Fill My Slambook.',
    data: type,
        title: 'Select friends'

};      

FB.init({ 
       appId:'xxxxxxxxx', cookie:true, 
       status:true, xfbml:true 
     });

    FB.ui(request, function (response) {
        if (response && response.request_ids) {


           document.getElementById('sent').style.display='block';
        } else {


        }
    })
}


function warmup(){
FB.init({ 
       appId:'xxxxxxxxx', cookie:true, 
       status:true, xfbml:true
     });
}


推荐答案

我:

var HACKAppRequests = {
    id_interval:0,
    busca:function(){
        var i,fb_root,iframe;

        try{
            fb_root = document.getElementById('fb-root');
            iframe = fb_root.getElementsByTagName('IFRAME');

            recorre_iframe:
            for(i=0;i<iframe.length;i++){
                if(iframe[i].className=='FB_UI_Dialog'){
                    clearInterval(HACKAppRequests.id_interval);
                    iframe[i].style.height = '550px';
                    break recorre_iframe;
                };
            };
        } catch(err){};
    }
};

FACEBOOK CALL

FACEBOOK CALL

function buscaAmigosFB(){
    FB.ui({method:'apprequests',
        title:'Esto es sólo para TI',
        message:'He decidido comenzar a escribir una historia. ¿Te atreves a escribirla conmigo ;D?',
        max_recipients:1
    },someFunction);

// RESIZE
HACKAppRequests.id_interval = setInterval(HACKAppRequests.busca,250);
};

这篇关于Facebook对话框没有显示到全高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆