I have a problem integrating my app with facebook. I am trying to read the $_REQUEST[‘code’]. It is present in the URL but it is returning empty. Probably since my code resides in the Facebook iFrame. Is there a way to read the parent URL query string inside iFrame?
Share
To make a working app, you don’t need to access that information.
In your canvas app, just decode the
signed_requestparameter Facebook HTTP Posts to you. In PHP it is very easy to decode.See http://developers.facebook.com/docs/authentication/signed_request/ for more information.
If you use the PHP SDK, the SDK will do this heavy lifting for you. See: https://github.com/facebook/php-sdk/