Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect problem. #44

Closed
roman-mazur opened this issue Jun 25, 2010 · 10 comments
Closed

Redirect problem. #44

roman-mazur opened this issue Jun 25, 2010 · 10 comments

Comments

@roman-mazur
Copy link

FB dialog retrieves the redirect response than starts the browser activity instead.

Redirect URL: http://touch.facebook.com/login.php?cancel=....

@roman-mazur
Copy link
Author

Here is the full flow.

06-25 08:34:50.212: DEBUG/Facebook-WebView(2670): Webview loading URL: https://graph.facebook.com/oauth/authorize?display=touch...
06-25 08:34:53.072: DEBUG/Facebook-WebView(2670): Webview loading URL: https://www.facebook.com/connect/uiserver.php?display=touch...
06-25 08:34:53.082: DEBUG/Facebook-WebView(2670): Redirect URL: https://www.facebook.com/connect/uiserver.php?display=touch...
06-25 08:34:55.312: DEBUG/Facebook-WebView(2670): Webview loading URL: http://touch.facebook.com/login.php?cancel=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel...
06-25 08:34:55.322: DEBUG/Facebook-WebView(2670): Redirect URL: http://touch.facebook.com/login.php?cancel=https...

And now I see the browser activity.

@metachris
Copy link

I have the problem too. Currently the facebook-android-sdk opens a Browser for authentication instead of the Dialog. And the Browser fails to redirect back into the Activity.

Is there any way to get the authentication back into the Dialog?

@oleksandr-semenov
Copy link

Same thing... is there something to do...it's urgent for me

@nanomb
Copy link

nanomb commented Jun 25, 2010

I think https://www.facebook.com/connect/uiserver.php?display=touch... used to redirect to https://ssl.facebook.com/login.php?... but now it's going to http://touch.facebook.com/login.php?. and that URL is opened in a web browser (line 138 of FBDialog.java) and not in the pop up window.

@soneff
Copy link

soneff commented Jun 25, 2010

Try pulling the latest version of the code. Let me know if this fixes it.

@Appventive
Copy link

It looks like its working now -- thanks! :-) [earlier comment deleted due to error on my part]

@roman-mazur
Copy link
Author

Works fine. Thanks.

@metachris
Copy link

Works for me too, thanks for the quick fix!

It makes me wonder though how vulnerable this SDK is for changes on Facebook's side. If I had deployed an app with the last version, all my users would now need to update their app for it to work again. @soneff: What's your opinion on that? Thanks again, and for this SDK in general!

@soneff
Copy link

soneff commented Jun 25, 2010

Yes, I totally understand this concern and have the same concern, and have communicated the problem to the server-side engineering team.

I'm writing a functional test suite that I will ask the engineering teams to run before pushing server changes to ensure that they have not made changes that break client code.

@jadavbheda
Copy link

I tried latest code for android 2.2 but it still not working for me.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants