我想在我的 BB 超级应用中嵌入 fb 和 twitter 分享,但不幸的是 BB 不支持弹出窗口。有什么方法可以在我的应用程序中嵌入 fb 和 twitter 共享,就像我们在博客中那样。
检查代码以获取弹出窗口。
function share(){
var share = {
method: 'stream.share',
u: 'http://www.example.com'
};
FB.ui(share, function(response) { console.log(response); });*/
/* $('#iframeDiv').show();
ServerCall(0,'html','shareFb.php',function(data)
{
//$('#Shareiframe').attr('src','http://m.facebook.com/sharer.php?u='+escape('http://www.astrochicks.com'));
$('#iframeDiv').html(data);
});
*/
}
/*SHARE TWITTER START*/
var shareTweet = function()
{
f='http://twitter.com/share?url='+encodeURIComponent(window.location.href)+'&text='+encodeURIComponent(document.title);
a=function()
{
//if(!window.open(f))
//location.href=f;
window.open(f,'twitterShare','width=500,height=400');
};
a();
/*if(/Firefox/.test(navigator.userAgent))
{
setTimeout(a,0)
}
else
{
}*/
};
可以在主页中使用一些隐藏的 iframe 来完成吗?
谢谢