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
Developer
Zukka
Posts: 201
Registered: ‎05-08-2012
My Device: PlayBook 64 Gb and Z10 LE
My Carrier: Vodafone
Accepted Solution

Oauth 2 and FaceBook

Hi to all :smileyhappy:

I test my app with ripple and work for FaceBook share .. but on PlayBook don't work :smileysad:

 

I think the problem is redirectUri, or a setting in FB app.

 

I have this setting in FB App:

 

App Domains: localhost

Web site for FaceBook login: http://localhost///index.html

Mobile site URL: http://localhost///index.html

 

in my App:

 

redirectUri: http://localhost:9910/myApp/index.html

 

and work fine on Ripple Emulator..

 

what's the error?

Why on PlayBook don't work?

:Helpsmilie: 

 

 

_______________________________________________

If U like my post click on LIKE :smileywink:
Please use plain text.
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Oauth 2 and FaceBook

I'm not sure this will work but try

local:/// instead of http://localhost///
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
Developer
Zukka
Posts: 201
Registered: ‎05-08-2012
My Device: PlayBook 64 Gb and Z10 LE
My Carrier: Vodafone

Re: Oauth 2 and FaceBook

I test and the problem is window.open() .. On BB10 work .. On PlayBook no. When I want to open a child windows for connection with Facebook .. The window don't appear :smileysad:
_______________________________________________

If U like my post click on LIKE :smileywink:
Please use plain text.
Developer
fantas
Posts: 107
Registered: ‎02-10-2012
My Device: Limited Developer Edition
My Carrier: WiFi

Re: Oauth 2 and FaceBook

check the documentation for the apis maybe is outdated
If i've helped you use the like button (KUDOS)!
Follow me at twitter: @hektorc
Read my blog: http://hektor.in
Check my GitHub: github.com/hektorcyc
Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Oauth 2 and FaceBook

window.open() does not work on PlayBook (unfortunately).  When called from the browser, a new tab is opened.  However there is no concept of tabs in WebWorks on Tablet OS so the call is essentially ignored.  However on BlackBerry 10, we made sure that window.open() was linked to a child browser control - which is why this behavior works as expected.

 

For PlayBook, I don't expect you will be able to use http://localhost:9910/myApp/index.html as a call back because Facebook does not know what localhost is. In order to make this work, I'd expect you'd need to use a page deployed on a public domain (e.g. PHP page on your own public web server) that can do a redirect for you to the localhost URL.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Developer
Zukka
Posts: 201
Registered: ‎05-08-2012
My Device: PlayBook 64 Gb and Z10 LE
My Carrier: Vodafone

Re: Oauth 2 and FaceBook

Thanks Adam for your aswers. :smileyhappy:

 

I had edited the XML file compiler WebWorks for PlayBook to activate the context menu and the "copy and paste".
I was hoping to fool the compiler .. but there's no way.
Saturday I had read about the problem in the dedicated website.
I will use the way you suggested.

_______________________________________________

If U like my post click on LIKE :smileywink:
Please use plain text.