When you register a facebook application you get
application id: 123455678 application key: hkjhkh3434hkklljk application secret: jkjljlj1233455jk
For OAuth 2 only application id (a.k.a. client_id) and application secret (a.k.a. client_secret) are userful.
Wondering what's purpose of the application key? Is it for some backend purpose? If yes, then what's point of exposing.
I'm just thinking loud here.
I guess this is only present for backward compatibility, specifically for old Facebook Connect implementation and REST API where the
APP_KEY
was used.As you can see in the
FB.init
Javascript-SDK:They don't mention the
apiKey
which is the code used with the NEW PHP-SDK.Now if you go to the old connect-js example:
So debugging the
connect.facebook.net/en_US/all.js
file (using JSBeautifier):You can see here that it's checking the presence of
apiId
orapiKey
and then trying to call the graph api and else the rest api:And:
As you can see here, it's used with the Old Rest API, reading the documentation there:
So the
APP_KEY
is definitely there for backward compatibility!