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
Developer
mstawick
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2

Re: Facebook SDK problems

Guys, it's change on the Facebook side:

 

http://developers.facebook.com/blog/post/445

 

basically Facebook SDK for BB needs to be fixed.

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Facebook SDK problems

i don't see how the change mentioned in the developer blog has any impact on the BB SDK, strawberry should use oauth 2.0 already.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
mstawick
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2

Re: Facebook SDK problems

Apparently it has, since on 11th it was working, and on 12th it stopped. BTW, as gratefull as I am for this SDK to exist, it's not very clean.

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Facebook SDK problems

my own tests confirm the findings. i will escalate the issue with rim.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
joseantv
Posts: 15
Registered: ‎12-28-2010
My Device: Not Specified

Re: Facebook SDK problems

if you know where we can write to rim, say around here to complain all and they fix it quickly

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Facebook SDK problems

it seems that the problem is caused by a change, or error, on facebook side. i don't know what rim can do directly, maybe use some contact to facebook to check what happened. it would be quite helpful if somebody who already researched a bit into the issue could report the bug on http://bugs.developers.facebook.net/
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
joseantv
Posts: 15
Registered: ‎12-28-2010
My Device: Not Specified

Re: Facebook SDK problems

Who would be responsible for this sdk? Facebook or Blackberry/rim?

Developer
mstawick
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2

Re: Facebook SDK problems

I think neither of them. Just some nice guy who wrote it and made it opensource.

Developer
Matoz
Posts: 15
Registered: ‎12-21-2008
My Device: Not Specified

Re: Facebook SDK problems

[ Edited ]

I think I found a solution.

 

In the LoginScreen in the constructor the URL is http://m.facebook.com/tos.php. The tos.php seems to redirect to http://m.facebook.com/login.php. While this redirect something seems to get lost.

 

I have changed the url to http://m.facebook.com/login.php and my application is working again.

 

Can someone please confirm this fix? Our application should go live very soon.

 

This is the changed Constructor of LoginScreen

 

	public LoginScreen(FacebookContext pfbc, CookieManager cookieManager) {
super(new StringBuffer().append("http://m.facebook.com/login.php?").append("api_key=").append(pfbc.getApplicationSettings().applicationKey).append('&').append("v=1.0").append('&').append("next=").append(pfbc.getApplicationSettings().nextUrl).toString(), pfbc, cookieManager);
settings = pfbc.getApplicationSettings();
addActionListener(this);
log.info("(LoginScreen) URL: " + getUrl());
}

 

Contributor
joseantv
Posts: 15
Registered: ‎12-28-2010
My Device: Not Specified

Re: Facebook SDK problems

I will confirm that it works (for now......)

 

Thanks everybody!