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

Blank Login Screen #43

Closed
FacebbokAndroid opened this issue Jun 24, 2010 · 18 comments
Closed

Blank Login Screen #43

FacebbokAndroid opened this issue Jun 24, 2010 · 18 comments

Comments

@FacebbokAndroid
Copy link

Hi, Im using the app id as '107714532611441'. Still im getting the blank empty log in page after i click the log in button. I have added the code to clear the session after the session restore.

@soneff
Copy link

soneff commented Jun 25, 2010

I tried your app id and it seems to work fine ... can you provide any more details? Does the blank page have a title? Look at the log and send the last URL (it might be really long) that the dialog tried loading.

@FacebbokAndroid
Copy link
Author

I have checked in 2.0 emulators. The same thing is happening in HTC dream.

@JoeLudwig
Copy link

On my actual HTC Magic logins are now failing and eventually load a page in a full screen web browser.
I am seeing slightly different results on an emulator running 1.6, but it still isn't working. Both were working fine a week ago and none of my code has changed. Here are the log entries from the emulator:

06-27 20:28:32.819: DEBUG/Facebook-WebView(306): Webview loading URL: https://graph.facebook.com/oauth/authorize?display=touch&redirect_uri=fbconnect://success&type=user_agent&client_id=121355764553989

06-27 20:28:40.309: DEBUG/Facebook-WebView(306): Webview loading URL: https://www.facebook.com/connect/uiserver.php?display=touch&redirect_uri=fbconnect%3A%2F%2Fsuccess&type=user_agent&client_id=121355764553989&next=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_success%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989&cancel_url=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989&fbconnect=1&return_session=1&app_id=121355764553989&method=permissions.request

06-27 20:28:40.309: DEBUG/Facebook-WebView(306): Redirect URL: https://www.facebook.com/connect/uiserver.php?display=touch&redirect_uri=fbconnect%3A%2F%2Fsuccess&type=user_agent&client_id=121355764553989&next=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_success%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989&cancel_url=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989&fbconnect=1&return_session=1&app_id=121355764553989&method=permissions.request

06-27 20:28:46.780: DEBUG/Facebook-WebView(306): Webview loading URL: http://touch.facebook.com/login.php?cancel=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989&fbconnect=1&next=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989%26next%3Dhttps%253A%252F%252Fgraph.facebook.com%252Foauth%252Fauthorize_success%253Fdisplay%253Dtouch%2526redirect_uri%253Dfbconnect%25253A%25252F%25252Fsuccess%2526type%253Duser_agent%2526client_id%253D121355764553989%26cancel_url%3Dhttps%253A%252F%252Fgraph.facebook.com%252Foauth%252Fauthorize_cancel%253Fdisplay%253Dtouch%2526redirect_uri%253Dfbconnect%25253A%25252F%25252Fsuccess%2526type%253Duser_agent%2526client_id%253D121355764553989%26fbconnect%3D1%26return_session%3D1%26app_id%3D121355764553989%26method%3Dpermissions.request%26from_login%3D1

06-27 20:28:46.790: DEBUG/Facebook-WebView(306): Redirect URL: http://touch.facebook.com/login.php?cancel=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989&fbconnect=1&next=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fdisplay%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D121355764553989%26next%3Dhttps%253A%252F%252Fgraph.facebook.com%252Foauth%252Fauthorize_success%253Fdisplay%253Dtouch%2526redirect_uri%253Dfbconnect%25253A%25252F%25252Fsuccess%2526type%253Duser_agent%2526client_id%253D121355764553989%26cancel_url%3Dhttps%253A%252F%252Fgraph.facebook.com%252Foauth%252Fauthorize_cancel%253Fdisplay%253Dtouch%2526redirect_uri%253Dfbconnect%25253A%25252F%25252Fsuccess%2526type%253Duser_agent%2526client_id%253D121355764553989%26fbconnect%3D1%26return_session%3D1%26app_id%3D121355764553989%26method%3Dpermissions.request%26from_login%3D1

@JoeLudwig
Copy link

The entries in the log file on the phone look similar to what the emulator is reporting.

@amitchintawar
Copy link

Having the same issue. But one weird behavior....when I use my home wifi for connecting to network it works fine but when I use my cellular EDGE network this issue props up.

@meeransm
Copy link

Hi, I am also getting the same issue. Blank page after clicking "Login" button.
Environment: Android 2.1 Emulator
App ID : 131695460195139
I also tried adding the clear session after restore, but the issue remains.

@meeransm
Copy link

When i paste the webview url https://graph.facebook.com/oauth/authorize?display=touch&scope=publish_stream,read_stream,offline_access&client_id=131695460195139&type=user_agent&redirect_uri=fbconnect://success in firefox, I get an "Untrusted Connection" error.

Could the blank page issue be due to this problem ?

The log of my error as shown in the emulator :


07-01 03:07:33.170: DEBUG/Facebook-Util(525): GET URL: https://api.facebook.com/restserver.php?method=auth.expireSession&format=json
07-01 03:07:36.720: INFO/ActivityManager(60): Displayed activity com.facebook.android/.Example: 8034 ms (total 8034 ms)
07-01 03:07:53.130: DEBUG/Facebook-WebView(525): Webview loading URL: https://graph.facebook.com/oauth/authorize?display=touch&scope=publish_stream,read_stream,offline_access&client_id=131695460195139&type=user_agent&redirect_uri=fbconnect://success
07-01 03:07:57.491: DEBUG/dalvikvm(525): GC freed 5077 objects / 312536 bytes in 116ms
07-01 03:08:00.340: DEBUG/dalvikvm(60): GC freed 14583 objects / 715472 bytes in 281ms
07-01 03:08:02.070: DEBUG/Facebook-WebView(525): Webview loading URL: https://www.facebook.com/connect/uiserver.php?display=touch&scope=publish_stream%2Cread_stream%2Coffline_access&client_id=131695460195139&type=user_agent&redirect_uri=fbconnect%3A%2F%2Fsuccess&next=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_success%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26client_id%3D131695460195139%26type%3Duser_agent%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess&cancel_url=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26client_id%3D131695460195139%26type%3Duser_agent%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess&fbconnect=1&return_session=1&app_id=131695460195139&method=permissions.request&perms=publish_stream%2Cread_stream%2Coffline_access
07-01 03:08:02.080: DEBUG/Facebook-WebView(525): Redirect URL: https://www.facebook.com/connect/uiserver.php?display=touch&scope=publish_stream%2Cread_stream%2Coffline_access&client_id=131695460195139&type=user_agent&redirect_uri=fbconnect%3A%2F%2Fsuccess&next=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_success%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26client_id%3D131695460195139%26type%3Duser_agent%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess&cancel_url=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26client_id%3D131695460195139%26type%3Duser_agent%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess&fbconnect=1&return_session=1&app_id=131695460195139&method=permissions.request&perms=publish_stream%2Cread_stream%2Coffline_access
07-01 03:08:10.020: DEBUG/dalvikvm(525): GC freed 6519 objects / 374824 bytes in 118ms
07-01 03:08:10.880: WARN/InputManagerService(60): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43e9e7c0

@meeransm
Copy link

meeransm commented Jul 1, 2010

Looks like this is related to this bug http://bugs.developers.facebook.com/show_bug.cgi?id=9944

I am able to circument this problem by not using https in the following places of Facebook.java

protected static String OAUTH_ENDPOINT = "http://graph.facebook.com/oauth/authorize";
protected static String UI_SERVER = "http://www.facebook.com/connect/uiserver.php";

After the above change, it seems to be working fine !!

@chopcsu
Copy link

chopcsu commented Jul 6, 2010

Changing to http has fixed this for me.

Cheers for the solution, would not have been the first thing I tried.

@amitchintawar
Copy link

Yes....Changing to "http" works for me too....

@chopcsu
Copy link

chopcsu commented Jul 6, 2010

Leave the graph api usikng https though, otherwise you wont be able to do post methods

@FacebbokAndroid
Copy link
Author

I have changed to http: instead of https:, but still im getting empty login page.

@yesnto
Copy link

yesnto commented Jul 21, 2010

I have the same issue

@JoeLudwig
Copy link

This is still failing for me. Any word on when we might see a fix?

@henrik242
Copy link

I fixed the blank dialog problems by using the latest from this branch instead: http://github.com/kneeshemoorah/facebook-android-sdk

@jadavbheda
Copy link

@bgold
Copy link
Contributor

bgold commented Jan 5, 2011

Dupe of issue #41

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

No branches or pull requests

10 participants