Giter Site home page Giter Site logo

Comments (18)

soneff avatar soneff commented on March 28, 2024

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.

from facebook-android-sdk.

FacebbokAndroid avatar FacebbokAndroid commented on March 28, 2024

Hello,

The last url web view tries to load is

https://www.facebook.com/connect/uiserver.php?display=touch&scope=publish_stream%2Cread_stream%2Coffline_access&client_id=107714532611441&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%3D107714532611441%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%3D107714532611441%26type%3Duser_agent%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess&fbconnect=1&return_session=1&app_id=107714532611441&method=permissions.request&perms=publish_stream%2Cread_stream%2Coffline_access

This url loads completely, but im getting a blank page, with no title shown. If have added more log statements, it seems, this url goes in the condition, the url contains 'display=touch'. When i check the code, the value returned from this condition is 'false'. But if i comment that portion of code and make the url to load in the browser its loading the login the page in the browser. Can you please help me to fix this issue?

from facebook-android-sdk.

FacebbokAndroid avatar FacebbokAndroid commented on March 28, 2024

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

from facebook-android-sdk.

JoeLudwig avatar JoeLudwig commented on March 28, 2024

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

from facebook-android-sdk.

JoeLudwig avatar JoeLudwig commented on March 28, 2024

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

from facebook-android-sdk.

amitchintawar avatar amitchintawar commented on March 28, 2024

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.

from facebook-android-sdk.

meeransm avatar meeransm commented on March 28, 2024

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.

from facebook-android-sdk.

meeransm avatar meeransm commented on March 28, 2024

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

from facebook-android-sdk.

meeransm avatar meeransm commented on March 28, 2024

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 !!

from facebook-android-sdk.

chopcsu avatar chopcsu commented on March 28, 2024

Changing to http has fixed this for me.

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

from facebook-android-sdk.

amitchintawar avatar amitchintawar commented on March 28, 2024

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

from facebook-android-sdk.

chopcsu avatar chopcsu commented on March 28, 2024

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

from facebook-android-sdk.

FacebbokAndroid avatar FacebbokAndroid commented on March 28, 2024

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

from facebook-android-sdk.

yesnto avatar yesnto commented on March 28, 2024

I have the same issue

from facebook-android-sdk.

JoeLudwig avatar JoeLudwig commented on March 28, 2024

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

from facebook-android-sdk.

henrik242 avatar henrik242 commented on March 28, 2024

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

from facebook-android-sdk.

jadavbheda avatar jadavbheda commented on March 28, 2024

fixed the issue visit my post at http://myunixworld.blogspot.com/2010/11/android-facebook-sdk-issue-fix-for.html

from facebook-android-sdk.

bgold avatar bgold commented on March 28, 2024

Dupe of issue #41

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.