Reputation: 437
Is it possible to get the Facebook app id on my canvas page?
So I am here: apps.facebook.com/myappspace
and in my index.php I want to get the FB App id now. Is this possible? The only way I figured out was when I can get the signed_request, because a user already authenticated my app.
But let's assume an unauthenticated user visits my canvas page. Any way to get the FB App Id?
P.S.
It's not possible to write it into my php-file, because I use the same code for several Facebook Apps, so I need to find our now what App is used to show individualized content.
Upvotes: 0
Views: 635
Reputation: 25938
In short this is not possible without getting signed_request
.
Actually you not really have to place this information in the code, but some configuration files, which should be different for every application instance, have appropriate permissions and without public access for sure.
You can decide which configuration to use based on application hostname/ip (any other way to identify which application it is).
Upvotes: 2