03-15-2011 02:08 AM
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
Solved! Go to Solution.
03-15-2011 07:26 AM
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.
03-15-2011 11:33 AM
Thank you for your advice about refactoring and your opinion about the reliability of the BlackBerry Facebook SDK.
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.
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
03-18-2011 05:40 AM
03-31-2011 02:59 AM
I upgraded BlackBerry OS Version v126.96.36.1999 to v188.8.131.524 (Bundle 1476) Via Web: http://us.blackberry.com/apps-software/devices/#ta
BTW: I am currently using BlackBerry Facebook SDK v0.6.0
This issue is now solved for me.
- David M.
03-31-2011 11:29 PM
After some rigourous testings on different OS versions, it is found that the SDK works only on OS 184.108.40.2062 or above.
I suspect that it is due to a bug in the BrowserField class prior to 220.127.116.112 when handling cookies upon an HTTP 302 redirection.