Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing php variables to Facebook Application Tab

Are you able to send php variables to a application in a tab (in facebook)?

I have built a system which sends a wall post to a friend, which includes a link with a php variable in it. This variable needs to be processed by the app, but I cant work out how to (or if I can) do this.

like image 801
daihovey Avatar asked Dec 13 '10 07:12

daihovey


1 Answers

Yes, you can pass URL Parameters to an iFrame Tab App.

Pass the parameter: http://www.facebook.com/MyPage?sk=MyApp&app_data=any_string_here

Receive the parameter: $app_data = $signed_request["app_data"];

See more: http://forum.developers.facebook.net/viewtopic.php?id=92661

like image 60
kloewer Avatar answered Oct 16 '22 23:10

kloewer