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: 13
Registered: ‎02-25-2013
My Device: Developer
My Carrier: Developer

Webworks app integration with facebook??

Hi I'm developing a webworks app that have to login using facebook. I have a question about the facebook app.

 

when you create a facebook app you have to select how the app integrates with facebook but the only options for mobiles are: mobile web, native iOs and native android, which one do i have to choose if i'm developing a webworks app? 

Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Webworks app integration with facebook??

Hey I know I already commented on your other post so you are aware of the Github example @ https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/FaceBook-OAuth-2

When using the O Auth example you choose website, but I assume here you want to integrate the Javascript SDK?

It's clear that you will not select ios or android so I would say it's a safe bet to go with mobile web if you're not doing the OAuth thing.
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Webworks app integration with facebook??

As a side note... I noticed there is a Phonegap plugin that looks pretty good for Facebook integration.

https://build.phonegap.com/blog/adobe-phonegap-build-plugin-for-facebook-connect

At this time only iOS and Android are supported but notice on the arrival boards https://developer.blackberry.com/html5/download/roadmap/ the top thing is Cordova Alignment so if we are lucky they might make the core Cordova plugins work with BlackBerry. Though that won't be helpful at this point as it probably won't be implemented for 2-3 months minimum.
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 107
Registered: ‎02-10-2012
My Device: Limited Developer Edition
My Carrier: WiFi

Re: Webworks app integration with facebook??

Mobile web for sure.
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
Contributor
Posts: 13
Registered: ‎02-25-2013
My Device: Developer
My Carrier: Developer

Re: Webworks app integration with facebook??

and what do i write on the web url and app domain?....my app won't have a url

Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Webworks app integration with facebook??

Wondering the same myself, last time I did this we had to use a PHP redirect but apparently you don't need to any more.

Just sent a tweet out to Chad that made the webworks sample

https://twitter.com/PhilipK_Ca/status/310143050984853504
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Highlighted
BlackBerry Development Advisor
Posts: 766
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Webworks app integration with facebook??

So just to wrap up this discussion, here's what I do when testing that Facebook sample.

 

In my js I setup the Facebook object like so...

 

	// setup our Facebook credentials, and callback URL to monitor
	facebookOptions = {
		clientId: 'abcd',
		clientSecret: 'abcd',
		redirectUri: 'http://www.chadtatro.com/'
	};

 

note the redirectUri is http://www.chadtatro.com/' <--- don't forget the trailing slash

 

This redirectUri is the same value that you use on Facebook when setting up your app.  I've attached a screenshot of what my actual Facebook settings are.

 

Untitled-1.png