Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cookies not enabled error" on some devices

I am working on an app that uses Facebook as an alternate login method to the app's standard account creation flow. On some devices, the web dialog authentication for Facebook is producing the error "Cookies are not enabled on your browser. Please adjust this in your security preferences".

So far I've seen it only on the a small Amazon Kindle Fire and a Galaxy Tab 10.1. I have verified that cookies are enabled on both devices, and the devices are able to log into Facebook using their stock web browsers. Reinstalling my app on the devices has had no effect, and no errors or warnings are present in logcat when the web dialog is launched. I'm using the lastest Facebook SDK 3.0 for Android.

Any insights on this issue would be appreciated.

EDIT: I should also add that I'm not sure if there is actually a problem with cookies. If I enter a bogus password, the FB dialog will attempt a login and fail with a password error message. If I then attempt to login again, using a real password, the dialog will pass and everything will process smoothly. A FB session is created correctly as well. The Cookie error only appears if I try a "real" login first, as opposed to failing the first login and then logging in a second time.

like image 409
TaylorP Avatar asked Feb 05 '13 16:02

TaylorP


1 Answers

I have faced the same issue & What i have done to solve this_

  1. launch My device default Browser
  2. go to option menu,
  3. select more then settings
  4. Scroll down until you find the Accept cookies option. The box next to it should not be checked. Selecting on the box will put a green check mark and enable cookies for the web browser. If you want to disable cookies, just toggle off the check box(test in both cases when cookies enabled & when disabled).

I hope this will solve your problem.

like image 57
Rupesh Yadav Avatar answered Oct 17 '22 16:10

Rupesh Yadav