0

I am using Simple example from the Facebook SDK just to get the user email, name, gender, facebookID to login to my server.

I am getting this Error:

yourApp is misconfigured for Facebook login. Press Okay to leave application without facebook login

This only occurs when i already have facebook app installed on my device. I tried uninstalling the facebook app, then i get correct details.

My application on facebook is configured as:

enter image description here

where am i doing wrong?

in place of Class Name i am giving the 1st Activity in my app, what exactly should i give here?

Thank You

Archie.bpgc
  • 23,812
  • 38
  • 150
  • 226

1 Answers1

1

even I had faced the same problem. It happens if you are using wrong version of openssl. I suggest you to use

openssl_0.9.0e_win32 version and enable log (make it TRUE), later you get new key hash. Use the new one, problem will be solved! :)

Charan
  • 942
  • 1
  • 6
  • 18
  • I am using **openssl-0.9.8k_WIN32.zip** which is mentioned everywhere – Archie.bpgc Oct 24 '12 at 10:07
  • 1
    @Archie.bpgc Nooooooooooooooooooooooooooooooooooooooooooooooo!! Dont use it, it has many bugs as I read in some blog. – Charan Oct 24 '12 at 10:08
  • use **openssl-0.9.8e_WIN32.zip** ?? – Archie.bpgc Oct 24 '12 at 10:16
  • I used and i got a new hash key. ill try it, but should i definitely give package name and class name? – Archie.bpgc Oct 24 '12 at 10:17
  • yeah mention both of them and use the same version which I mentioned in my earlier reply. – Charan Oct 24 '12 at 10:19
  • What exactly is **Class Name**. Is it the 1st Activity in my application?? in docs its given class name which facebook opens. I didnt understand – Archie.bpgc Oct 24 '12 at 10:25
  • First activity is enough. Might be your app splash screen activity name too. It will work. But give proper package name. – Charan Oct 24 '12 at 10:42
  • Hey! hope you can accept the answer by clicking (answer is useful). – Charan Oct 24 '12 at 10:45
  • Yeah i gave the SpalshScreenActivity as the Class Name and package name is also fine. And used new hashcode that came with **openssl-0.9.8e_WIN32**. but its the same error :(((( – Archie.bpgc Oct 24 '12 at 10:49
  • Then, there might be some other problem in permissions and other. Have you downloaded hackbook example?? Try to cross check with that! Also, try giving first activity name where you are using facebook API (not actually necessary). – Charan Oct 24 '12 at 10:54
  • I am following **Simple** example, not **hackbook**. My only puspose is to get user data, so **hackbook** seems complicated. But 1 thing is, when i uninstall facebook application on my device, it works fine. – Archie.bpgc Oct 24 '12 at 10:57
  • oh yeah! That happened to me too. facebook application maintains all session data, I thought that was the problem and left it. But, it used to login (asks for sign in everytime you open application). – Charan Oct 24 '12 at 11:05