GithubHelp home page GithubHelp logo

Comments (17)

soneff avatar soneff commented on April 25, 2024

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?

from facebook-android-sdk.

saimaina avatar saimaina commented on April 25, 2024

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?

from facebook-android-sdk.

soneff avatar soneff commented on April 25, 2024

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

from facebook-android-sdk.

lakshi avatar lakshi commented on April 25, 2024

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

from facebook-android-sdk.

JijaPhilip avatar JijaPhilip commented on April 25, 2024

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

from facebook-android-sdk.

soneff avatar soneff commented on April 25, 2024

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

from facebook-android-sdk.

corpusmobile avatar corpusmobile commented on April 25, 2024

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

from facebook-android-sdk.

mbeelv avatar mbeelv commented on April 25, 2024

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.

from facebook-android-sdk.

mbeelv avatar mbeelv commented on April 25, 2024

@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.

from facebook-android-sdk.

mbeelv avatar mbeelv commented on April 25, 2024

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.

from facebook-android-sdk.

saimaina avatar saimaina commented on April 25, 2024

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.

from facebook-android-sdk.

soneff avatar soneff commented on April 25, 2024

@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.

from facebook-android-sdk.

soneff avatar soneff commented on April 25, 2024

@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.

from facebook-android-sdk.

mbeelv avatar mbeelv commented on April 25, 2024

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

from facebook-android-sdk.

FacebbokAndroid avatar FacebbokAndroid commented on April 25, 2024

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

from facebook-android-sdk.

jadavbheda avatar jadavbheda commented on April 25, 2024

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

from facebook-android-sdk.

jadavbheda avatar jadavbheda commented on April 25, 2024

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

from facebook-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.