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 #5

Closed
mbeelv opened this issue May 31, 2010 · 17 comments
Closed

Blank Login Screen #5

mbeelv opened this issue May 31, 2010 · 17 comments

Comments

@mbeelv
Copy link

mbeelv commented May 31, 2010

I build the SDK on Android SDK 1.6. I added the APP_ID. I'm testing this on the ADP1. After i click on the login screen, i can only find a blank screen. I have tried this many times.

@soneff
Copy link

soneff commented Jun 1, 2010

Do you still have this issue?

Can you provide some more details? Are you trying to run one of the examples? What permissions are you requesting? What App ID are you testing with? Are you testing on a device or emulator? Does the device have network connectivity?

@saimaina
Copy link

saimaina commented Jun 1, 2010

I am having the same problem with running the facebook-sdk example. I am using the android 2.2 api and froyo device. When I click on the Login button, it shows a loading sign and then blank screen with error title and OK button. What could be wrong?

@soneff
Copy link

soneff commented Jun 2, 2010

Are you using a valid App ID? What App ID are you testing with?

@lakshi
Copy link

lakshi commented Jun 2, 2010

Create an account for your application using the link
http://developers.facebook.com/setup/
Then use the app_id and try again

@JijaPhilip
Copy link

Hi,I am also getting blank screen even after creating app_id using the above link.

@soneff
Copy link

soneff commented Jun 2, 2010

Can you provide the App ID that you are trying to use? Does the blank dialog box have anything displayed in the title?

@corpusmobile
Copy link

Hi, I have tried running both the examples "facebookSDK-example" and "stream". They rarely display the login screen when I click the connect button, most of the times it is just a blank screen with title facebook.
my "facebookSDK-example" app name is "TestFBSDK" with app_id 115630648480232.
my "stream" app name is "CheckFBSDK" with app_id 131505246861774.

Thanks,
Bhupathi

@mbeelv
Copy link
Author

mbeelv commented Jun 3, 2010

Hi Soneff,

I do get the main screen. when i click on the Login button, i get a blank white screen (like a pop-up) with a loading window for sometime. when the loading window is done, the screen reains blank but does have 'Facebook' in the blue header.
The app ID i used is 112255338818577.

@mbeelv
Copy link
Author

mbeelv commented Jun 3, 2010

@soneff: Followup... more info on my trial..... I used ADP1 to run the facebook-sdk example in the SDK. I tried it on Android 1.6 also. I tried it via WiFi and 3G. The result was the same.

@mbeelv
Copy link
Author

mbeelv commented Jun 4, 2010

Hi Soneff,
here's the log for the Blank Screen:
06-04 16:30:35.931: INFO/ActivityManager(71): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.facebook.android/.Example }
06-04 16:30:36.011: INFO/ActivityManager(71): Start proc com.facebook.android for activity com.facebook.android/.Example: pid=373 uid=10034 gids={3003}
06-04 16:30:36.661: INFO/ActivityManager(71): Displayed activity com.facebook.android/.Example: 671 ms (total 671 ms)
06-04 16:30:47.751: INFO/jdwp(373): received file descriptor 30 from ADB
06-04 16:30:57.781: DEBUG/Facebook-WebView(373): Webview loading URL: https://graph.facebook.com/oauth/authorize?display=touch&scope=publish_stream,read_stream,offline_access&redirect_uri=fbconnect://success&type=user_agent&client_id=112255338818577
06-04 16:31:01.831: DEBUG/dalvikvm(373): GC freed 3746 objects / 297384 bytes in 121ms
06-04 16:31:02.981: DEBUG/Facebook-WebView(373): Webview loading URL: https://www.facebook.com/connect/uiserver.php?display=touch&scope=publish_stream%2Cread_stream%2Coffline_access&redirect_uri=fbconnect%3A%2F%2Fsuccess&type=user_agent&client_id=112255338818577&next=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_success%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D112255338818577&cancel_url=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D112255338818577&fbconnect=1&return_session=1&app_id=112255338818577&method=permissions.request&perms=publish_stream%2Cread_stream%2Coffline_access
06-04 16:31:02.981: DEBUG/Facebook-WebView(373): Redirect URL: https://www.facebook.com/connect/uiserver.php?display=touch&scope=publish_stream%2Cread_stream%2Coffline_access&redirect_uri=fbconnect%3A%2F%2Fsuccess&type=user_agent&client_id=112255338818577&next=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_success%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D112255338818577&cancel_url=https%3A%2F%2Fgraph.facebook.com%2Foauth%2Fauthorize_cancel%3Fdisplay%3Dtouch%26scope%3Dpublish_stream%252Cread_stream%252Coffline_access%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26client_id%3D112255338818577&fbconnect=1&return_session=1&app_id=112255338818577&method=permissions.request&perms=publish_stream%2Cread_stream%2Coffline_access
06-04 16:31:04.341: DEBUG/dalvikvm(373): GC freed 7396 objects / 398496 bytes in 122ms
06-04 16:31:04.571: WARN/InputManagerService(71): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43bd5e28

I also have a sceenshot but i cant post iages here unfortunately. Hope this can give you a better idea to help me resolve it.

@saimaina
Copy link

saimaina commented Jun 4, 2010

I am not having this problem anymore. The problem was I had not copied the right API key in the Example.java file. Once corrected it worked like a charm.

@soneff
Copy link

soneff commented Jun 4, 2010

@mbeelv I haven't been able to reproduce this problem with App 112255338818577 (it seems to work fine with my test account). Perhaps try the following: clear any local session state and saved cookies. This can be done by inserting the following line in Example.java:

try { mFacebook.logout(this); } catch (Exception e) { e.printStackTrace(); }

after SessionStore.restore(mFacebook, this); (Example.java: line 79)

Also check that you don't have any network connectivity issues in your test environment.

@soneff
Copy link

soneff commented Jun 4, 2010

@corpusmobile: I haven't been able to reproduce the problem with your App IDs (they work fine with my test account). Try clearing the cookies using the technique I described above. You could also try wipe the user data on the emulator and reinstalling the app or creating a new test app.

I've asked for some server-side changes to give some debugging information rather than a blank screen, but these won't be available until the next server push early next week.

@mbeelv
Copy link
Author

mbeelv commented Jun 7, 2010

Thanks soneff, the solution worked like a charm. was able to post msgs too :)

@FacebbokAndroid
Copy link

Hai, im using the following app id '107714532611441'. Still im getting the blankl login page.

@jadavbheda
Copy link

Hi Soneff,

My application id is 139668799384158. I m still getting blank screen.
(Earlier it wasnot giving me login screen also. But then i changed "https" to "http" in facebook.java file. After login now it shows blank screen with title "Facebook Login")

01-01 00:56:16.148: DEBUG/Facebook-Util(6515): GET URL: http://api.facebook.com/restserver.php?method=auth.expireSession&format=json
01-01 00:56:21.816: INFO/ActivityManager(2150): Displayed activity com.facebook.android/.Example: 6060 ms (total 6060 ms)
01-01 00:56:26.863: DEBUG/dalvikvm(5319): GC_EXPLICIT freed 106 objects / 9152 bytes in 36ms
01-01 00:56:33.210: INFO/AudioHardwareALSA(2088): Try to open ALSA PLAYBACK device AndroidPlayback
01-01 00:56:33.218: INFO/AudioHardwareALSA(2088): Initialized ALSA PLAYBACK device AndroidPlayback
01-01 00:56:33.218: DEBUG/AudioHardwareALSA(2088): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
01-01 00:56:33.218: DEBUG/AudioHardwareALSA(2088): Using 2 channels for PLAYBACK.
01-01 00:56:33.218: DEBUG/AudioHardwareALSA(2088): Set PLAYBACK sample rate to 44100 HZ
01-01 00:56:33.218: DEBUG/AudioHardwareALSA(2088): Buffer size: 4096
01-01 00:56:33.218: DEBUG/AudioHardwareALSA(2088): Latency: 92879
01-01 00:56:34.043: ERROR/AudioHardwareALSA(2088): bufferSize 4096, periodSize 2048
01-01 00:56:34.043: WARN/AudioFlinger(2088): write blocked for 831 msecs, 44 delayed writes, thread 0x2e240
01-01 00:56:34.046: DEBUG/Facebook-WebView(6515): Webview loading URL: http://www.facebook.com/dialog/oauth?type=user_agent&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=touch&client_id=139668799384158
01-01 00:56:39.851: DEBUG/Facebook-WebView(6515): Webview loading URL: http://www.facebook.com/connect/uiserver.php?app_id=139668799384158&method=permissions.request&display=touch&next=fbconnect%3A%2F%2Fsuccess&type=user_agent&fbconnect=1
01-01 00:56:39.851: DEBUG/Facebook-WebView(6515): Redirect URL: http://www.facebook.com/connect/uiserver.php?app_id=139668799384158&method=permissions.request&display=touch&next=fbconnect%3A%2F%2Fsuccess&type=user_agent&fbconnect=1
01-01 00:56:40.171: DEBUG/Facebook-WebView(6515): Webview loading URL: http://touch.facebook.com/login.php?app_id=139668799384158&fbconnect=1&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fapp_id%3D139668799384158%26method%3Dpermissions.request%26display%3Dtouch%26next%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26fbconnect%3D1%26from_login%3D1
01-01 00:56:40.171: DEBUG/Facebook-WebView(6515): Redirect URL: http://touch.facebook.com/login.php?app_id=139668799384158&fbconnect=1&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fapp_id%3D139668799384158%26method%3Dpermissions.request%26display%3Dtouch%26next%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26fbconnect%3D1%26from_login%3D1
01-01 00:56:51.546: DEBUG/dalvikvm(6515): GC_FOR_MALLOC freed 2807 objects / 199640 bytes in 38ms
01-01 00:56:51.742: WARN/InputManagerService(2150): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@46141860
01-01 00:56:58.339: DEBUG/dalvikvm(2270): GC_EXTERNAL_ALLOC freed 1788 objects / 74080 bytes in 77ms
01-01 00:57:49.078: INFO/AudioHardwareALSA(2088): Try to open ALSA PLAYBACK device AndroidPlayback
01-01 00:57:49.089: INFO/AudioHardwareALSA(2088): Initialized ALSA PLAYBACK device AndroidPlayback
01-01 00:57:49.089: DEBUG/AudioHardwareALSA(2088): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
01-01 00:57:49.089: DEBUG/AudioHardwareALSA(2088): Using 2 channels for PLAYBACK.
01-01 00:57:49.089: DEBUG/AudioHardwareALSA(2088): Set PLAYBACK sample rate to 44100 HZ
01-01 00:57:49.089: DEBUG/AudioHardwareALSA(2088): Buffer size: 4096
01-01 00:57:49.089: DEBUG/AudioHardwareALSA(2088): Latency: 92879
01-01 00:57:49.371: DEBUG/Facebook-WebView(6515): Webview loading URL: https://login.facebook.com/login.php?app_id=139668799384158&iphone&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fapp_id%3D139668799384158%26method%3Dpermissions.request%26display%3Dtouch%26next%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26fbconnect%3D1%26from_login%3D1&refsrc=http%3A%2F%2Ftouch.facebook.com%2Flogin.php
01-01 00:57:49.902: ERROR/AudioHardwareALSA(2088): bufferSize 4096, periodSize 2048
01-01 00:57:49.902: WARN/AudioFlinger(2088): write blocked for 822 msecs, 45 delayed writes, thread 0x2e240
01-01 00:58:01.832: INFO/AudioHardwareALSA(2088): Try to open ALSA PLAYBACK device AndroidPlayback
01-01 00:58:01.839: INFO/AudioHardwareALSA(2088): Initialized ALSA PLAYBACK device AndroidPlayback
01-01 00:58:01.839: DEBUG/AudioHardwareALSA(2088): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
01-01 00:58:01.839: DEBUG/AudioHardwareALSA(2088): Using 2 channels for PLAYBACK.
01-01 00:58:01.839: DEBUG/AudioHardwareALSA(2088): Set PLAYBACK sample rate to 44100 HZ
01-01 00:58:01.839: DEBUG/AudioHardwareALSA(2088): Buffer size: 4096
01-01 00:58:01.839: DEBUG/AudioHardwareALSA(2088): Latency: 92879
01-01 00:58:02.644: ERROR/AudioHardwareALSA(2088): bufferSize 4096, periodSize 2048
01-01 00:58:02.789: WARN/AudioFlinger(2088): write blocked for 958 msecs, 46 delayed writes, thread 0x2e240
01-01 00:58:07.554: WARN/InputManagerService(2150): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@46236ee0

@jadavbheda
Copy link

facebook Andoid sdk issue fixed: see my post on http://myunixworld.blogspot.com/2010/11/android-facebook-sdk-issue-fix-for.html

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

8 participants