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

Java Development

Reply
Regular Contributor
Posts: 64
Registered: ‎04-27-2010
My Device: Bold 9000
My Carrier: Vodafone

Re: api to generate session key for facebook connect

Hi Swati-srivastava,

 

There are two BrowserField classes out there. BrowserField  and BrowserField2. The second one is only available for OS 5.0.

 

What you need to do is use BrowserField. The source code for a browserfield demo application comes with JDE 4.6 in the samples folder. I'm not sure about Eclipse so I've compressed the code and put it up for you on my domain

 

In the processConnection method you'll find a comment telling you where exactly you should put your FB token parsing code and what you should do.

 

Good luck 

Regular Contributor
Posts: 64
Registered: ‎04-27-2010
My Device: Bold 9000
My Carrier: Vodafone

Re: api to generate session key for facebook connect

Also check this post for more details on the Authentication method

 

http://supportforums.blackberry.com/t5/Java-Development/Authenticating-with-OAuth-2-0-with-Facebook/...

New Contributor
Posts: 5
Registered: ‎10-26-2010
My Device: Not Specified

Re: api to generate session key for facebook connect

hi ebaskro

i hav checked ur code..its working fine..but if i change the application_key and secret key the code id not working...showing error "secret" key generation..i gav
arguments.put("generate_session_secret", "true"); in getSession(String token) but still not working..pls help.i m new to blakberry..pls reply

regards

preethi
New Contributor
Posts: 5
Registered: ‎10-26-2010
My Device: Not Specified

Re: api to generate session key for facebook connect

 
New Contributor
Posts: 5
Registered: ‎10-26-2010
My Device: Not Specified

Re: api to generate session key for facebook connect

hi ebaskro

i hav checked ur code..its working fine..but if i change the application_key and secret key the code id not working...showing error "secret" key generation.need to chnge application_id?The response I get is like: "session_key":"XXXXXXXXXX-XXXX","uid":XXXXX,"expires":XXXXXX,"base_domain":"ABC.com" but no secret .i gav
arguments.put("generate_session_secret", "true"); in getSession(String token) but still not working..pls help.i m new to blakberry..pls reply

regards

preethi
Contributor
Posts: 11
Registered: ‎04-29-2011
My Device: 8520
My Carrier: AT &T

Re: api to generate session key for facebook connect

Hi

 

The link is not working.Can u send the code fpr the FB integration ?

Highlighted
Contributor
Posts: 18
Registered: ‎11-10-2010
My Device: Not Specified

Re: api to generate session key for facebook connect

can u plz tell me where i need to add the code of data.appenf(.......) etc

plzzzzzzzzzzzzzzzzzzzzzzzzzzz