I want to embed fb and twitter share on my BB super app, but unfortunately BB doesn't support popups. Is there any way that I can embed fb and twitter share in my app, as we do it in blogs.
Check the code to get popup.
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
{
}*/
};
Can it be done using some hidden iframe inside main page??
Thanks
You must include blackberry.invoke and blackberry.invoke.BrowserArguments in project
function openURL(url)
{
var args = new blackberry.invoke.BrowserArguments(url);
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);
}