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
New Contributor
Posts: 9
Registered: ‎02-20-2010
My Device: Not Specified
Accepted Solution

BlackBerry Facebook SDK v0.4.5

Hello,

I am attempting to use the BlackBerry Facebook SDK v0.4.5 available here: https://sourceforge.net/projects/facebook-bb-sdk/

 

I cannot login, the API keeps redirecting back to the initial Facebook login screen and throwing this exception: "FacebookException: Unable to refresh the Access Token".

 

I experience the same problems with previous versions v0.3.5 and v0.4.2.

 

I experience the identical problem with the "Strawberry" example and with my own implementation.

 

I experience the identical problem with the Facebook Test Application ID and with my own Facebook Application ID.

 

I experience the same problem when connected with wireless and Wifi connections. When connected via Wifi the connection string: ";interface=wifi" is correctly appended to the url.

 

Please send some advice on what might be causing my inability to login to Facebook.

 - Thank you, David

 

Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: BlackBerry Facebook SDK v0.4.5

A lot of peoples are having problem with this API.

It has even been removed from the Facebook Officials API after one or two month on their website.

 

This API should be refactored before being used (even if Blackberry doesn't seems to give a single interest to it).

Don't rely on it.

New Contributor
Posts: 9
Registered: ‎02-20-2010
My Device: Not Specified

Re: BlackBerry Facebook SDK v0.4.5

Hitheredin,

Thank you for your advice about refactoring and your opinion about the reliability of the BlackBerry Facebook SDK.

 

Refactoring:

I believe that the refactoring that you are referring to is a change of the package name from the default "com.blackberry.*". I should have mentioned in my original post that, "Yes", I did refactor during my initial implementation and change to a unique package name. Refactoring of the package name does not help with my FacebookException.

 

API Reliability:

Is this true!?! I hope others weigh in on your opinion about the reliability of the API. The alternative that I am aware of is to write everything from scratch and parse the responses manually. Perhaps by even copying some of the code in the BlackBerry Facebook SDK. Are you aware of any other alternatives? Otherwise, I hope someone weighs in on helping me to fix my particular exception as I see that a lot of developers seem to be using this SDK.

 - Thank you, David

 

 

Retired
Posts: 48
Registered: ‎12-15-2008
My Device: Not Specified

Re: BlackBerry Facebook SDK v0.4.5

 

Hi guys,
Version 0.5.12 is released. Enjoy!
Minor bugs fixed.
Hardcore unit tests added !!! Smiley Happy

 

Best Regards,
David Lim(林玮)


BlackBerry App World:
http://www.blackberry.com/appworld

BlackBerry Developer Zone:
http://www.blackberry.com/developers
Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: BlackBerry Facebook SDK v0.4.5

Adding unit testing is a great idea. I'll try it as soon as I have time

 

Thanks David!

New Contributor
Posts: 9
Registered: ‎02-20-2010
My Device: Not Specified

Re: BlackBerry Facebook SDK v0.4.5

I upgraded BlackBerry OS Version v5.0.0.449 to v5.0.0.884 (Bundle 1476) Via Web: http://us.blackberry.com/apps-software/devices/#tab_tab_update.

This was based on the advice of David Lim, who told me that there is a bug in the BrowserField class prior to BlackBerry OS v5.0.0.862
After the OS update, Strawberry and my custom app work correctly.

 

BTW: I am currently using BlackBerry Facebook SDK v0.6.0

This issue is now solved for me.

 - David M.

Retired
Posts: 48
Registered: ‎12-15-2008
My Device: Not Specified

Re: BlackBerry Facebook SDK v0.4.5

After some rigourous testings on different OS versions, it is found that the SDK works only on OS 5.0.0.862 or above.

 

I suspect that it is due to a bug in the BrowserField class prior to 5.0.0.862 when handling cookies upon an HTTP 302 redirection.

Best Regards,
David Lim(林玮)


BlackBerry App World:
http://www.blackberry.com/appworld

BlackBerry Developer Zone:
http://www.blackberry.com/developers