Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 16
Registered: ‎03-25-2012
My Device: Blackbery Playbook

Facebook Login Button in BB Playbook Application

Hello Folks,

I have been working with development of Blackberry Playbook Application, i.e.. HTML5/Webworks, I would like to implement a feature of Facebook Login for my application, but for some reasons I couldn't do that.

For testing I have been using Ripple Emulator

Code for facebook login button - 

Button - Facebook Developers

I have added this code just below the body tag

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src="//connect.facebook.net/en_US/all.js#xfbml=1&appId=APP_ID";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"></div>

With this code I am able to see the login button, but when I click on the button it does not generate the popup like we get on web application.

Please suggest any ideas for the same.

Regards

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,

Re: Facebook Login Button in BB Playbook Application

There are no popups in WebWorks, you need to use the ChildBrowser extension to load another instance of the browser.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.