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
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

How to update Facebook timeline in background

Hi,

 

I would like to update the facebook timeline of the user on start of my application. I would like this to happen in the background if the user has logged into his account.

 

  1. Is this possible?
  2. I would want to check if the user has logged into his facebook app on his blackberry devices?
  3. How can we fetch facebook applications data in my application?
  4. Is there any way to fetch other applications data?

 

Please help.

 

Regards,

Annuk

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: How to update Facebook timeline in background

If you look at the FB API this is all very easy

 

The bad bit is that you need a server

 

You go device -> server -> FB -> server -> device

 

The result of an http js callback via that loop does exactly what you want

 

I admit - this ain't a good answer but it points you in the right direction

 

Its a few days work to go from zero to hero




Click the like button if you find my posts useful!
BlackBerry Development Advisor
Posts: 761
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: How to update Facebook timeline in background

Yup, should be possible by using OAuth. 

 

I wrote a sample a while back on integrating Facebook (and OAuth v2) in to your WebWorks apps.  The sample code is available here: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/FaceBook-OAuth-2

Developer
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

Re: How to update Facebook timeline in background

[ Edited ]

Hi,

 

How can we open the native facebook app directly in bb10 using the share framework and prepoulate the post textbox.

 

Regards,

Annuk

Highlighted
BlackBerry Development Advisor
Posts: 761
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: How to update Facebook timeline in background

Yes you can,

 

There's a great sample app which shows this here: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/invoke