Search code examples
facebookfacebook-apps

Passing Parameters to facebook application


After lots of try I'm still stuck, I wanted to confirm one thing when passing parameters to a facebook application.

Does every parameters gets passed to the application, for e.g. if i've an application running

https://apps.facebook.com/example/index.php, and I do this https://apps.facebook.com/example/index.php?app_data={"para1":"para1"}, will this be passed??


Solution

  • To get the parameter, I'm simply doing $_GET and retrieving the parameter from a typical URL like apps.facebook.com//index.php?var=

    so, on index.php, I'm simply doing

    $_GET['var'] and thus getting the var