Tuesday, April 5, 2011

Passing data into a facebook iframe app

When you send someone to your facebook app, you probably want to be able to track that referral. Obviously, since your app runs in an iframe, you can't see the parameters that were used to reach the parent page.

Fortunately, facebook allows you to get data sent into your application. Add the parameter "app_data" to the url that is used to reach your page...


Now, use the method in my last post to access the signed request and you can find your referral information in


Whew! Another coding disaster averted.