Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook api on android: blank screen instead of auth

I've searched for the past 3 hours for answers regarding this problem, and similar questions did not help, so I'm finally asking the question:

I'm trying to use Facebook's SDK for Android, and I'm getting a "blank" screen (there's a frame around it, but where you'd expect the authorization details I'm instead getting white space):

A blank screen.

Clicking "Log In" gives the same page, only the title is now "Error" with a vague message:

An error screen.

  • I've checked that the hash key is right. I've changed the hash key to something absurd like "asdf" and the log indeed says that the application is using [some key] and isn't matching. So I replaced "asdf" with [some key] and that error went away. (Additionally, the page above doesn't even show up in the case of incorrect hash keys, it just ends the auth process immediately.)

  • I've checked that date and time settings are correct, so at least SSL isn't breaking with respect to that. I don't see any related errors or warnings in logcat, either.

  • I did find an existing question (no real answers) and the linked solution but that seems outdated. (And it doesn't work.)

I'm following the FB tutorial at https://developers.facebook.com/docs/mobile/android/build/#enablesso word for word, and at this point I have no idea how to debug this with no errors or warnings in the log. Has anybody else seen this bug before?

(I'm using Android API 15 with the latest clone of the github for the FB API.)

like image 966
munchybunch Avatar asked Apr 18 '12 03:04

munchybunch


People also ask

Why is my Facebook showing blank screen?

If your feed is blank, close and reopen Facebook to refresh your Feed. If that doesn't work, please learn how to report a problem with Facebook.

Why is my FB menu not working?

Try refreshing your browser or reopening the site; on a mobile app, close and reopen the app. You can also check to see if Facebook is offline and then restart your device, update apps, and clear your cache.


2 Answers

I have the same issue using Titanium mobile development on andorid and both using a webview or using SSO give the same result.

Edit: A bug has been filed so please sign up to it as well: https://developers.facebook.com/bugs/385350798163367?browse=search_4f8ed4596fd900857644164

like image 127
user584569 Avatar answered Sep 27 '22 18:09

user584569


Edit: I've tried multiple different apps that require a Facebook login, and all of those had the same problem. Seems like it may be a bug on Facebook.

like image 25
Dominik Avatar answered Sep 27 '22 20:09

Dominik