开发者

Using session variables in Facebook application

开发者 https://www.devze.com 2023-03-14 23:32 出处:网络
I build a simple application available at: http://www.facebook.com/apps/application.php?id=216798445011521

I build a simple application available at: http://www.facebook.com/apps/application.php?id=216798445011521

About The Application: the application allow you to create in your fan page a "before & after" user like the page and show him a html content.

I have a little question: I want to upgrade it to a little more tricky but the problem is when you click at index.php on link that redirect the user to about.php my script lose the variable example: if the user is admin or not, if he fan or not, page id etc'

there is an option to fix it开发者_如何学Go? maybe the canvas url force him to support at multi application page or something?


Loosing variable? Probably you should store that kind of data in session, on the server side.

If you do that app in PHP take a look here http://php.net/manual/pl/features.sessions.php


Store all the necessary variables in $_SESSION, so that you can simply access them through out the session.

0

精彩评论

暂无评论...
验证码 换一张
取 消