我想在我的BB超级应用程序中嵌入fb和twitter分享,但不幸的是BB不支持弹出窗口。有什么方法可以在我的应用中嵌入fb和twitter分享,就像我们在博客中一样。blackberry webworks facebook分享
检查代码弹出。
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在主页内?
感谢