I use FBConnect on Android, it seems that the only identifier I need is the application identifier, which is a string of numbers:
Facebook mFacebook = new Facebook(FacebookConstants.APP_ID);
But I also got the API Key and the Secret API when registering my application, I wonder where they are used? Did I do something wrong? I looked at the sample code from FBConnect, also there is no api key and api secret anywhere.
Edit: Can someone clarify if there are three keys / identifiers: application identifier, application key and application secret? The following is the code from the FBConnect sample project: public static final String APP_ID = "175729095772478";
My app-app doesn't look like this, I don't have numbers in it. And I'm still confused, the Facebook Doc has a command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
it gives me a string that I can use to register on Facebook, but how is it related to the application key and secret? I tried the FBConnect sample (simple) and I did not execute the keytool command, this works; But if I use the application key of the application, it does not work.
source share