QuickBlox / BB10-Facebook-Connector

BB10 Facebook Connector
GNU Lesser General Public License v2.1
7 stars 2 forks source link

Error when retrieving token #3

Open DiegoAnfuso opened 10 years ago

DiegoAnfuso commented 10 years ago

Hey guys, I'm having a problem with your sample. I run it, login with FB in the browser, but the app doesn't read the token given by Facebook. I mean Facebook is retrieving the token but the oauth reply server doesn't get it, so the app fails. I've been using this library for a year with no problem, but now it doesn't work. Any ideas?

vladimir-slatvinskiy commented 10 years ago

Hi, Please open your facebook application settings (on facebook site) and change callback URL for application to new one http://quickblox.github.io/BB10-Facebook-Connector/redirect? Then pull changes and run this sample again. For some reasons, Facebook passes access token in GET request parameters after hash symbol '#'. Blackberry API unable to read parameters after this symbol. So, we changed callback URl to http://quickblox.github.io/BB10-Facebook-Connector/redirect? This page just removes hash symbol and redirects to localhost with the same parameters.