Reputation: 171
I created a page tab app in facebook, whose url is like : http://www.facebook.com/PageName/app_123456789
Is there a way to retrieve the id of the application (= 123456789) from the iframe ?
The facebook documentation mentions the "signed_request" parameter, but it does not contain this information.
Upvotes: 0
Views: 328
Reputation: 268
If you mean programatically then $facebook->appId will do the trick. base_facebook.php has a getting function called function getAppId()
Upvotes: 1
Reputation: 155
If you created the app, shouldn't you already know the app ID? You can then put it in your code. It's not like it's going to change.
Otherwise you can use PHP or JavaScript to get the URL of the browser. Get the full URL in PHP
You might want to do it with JS get the parent url of iframe in PHP
Upvotes: 0