开发者

Losing Facebook context parameters when redirecting

I'm moving my client's facebook application over to an iframe, as suggested by facebook. Except, I seem to be losing facebook's provided "context" (userid, etc) when I perform an internal redirect.

Am I missing something trivial here? Pulling my hair out over here and googling isn't helping开发者_如何转开发. I'm really hoping I don't have to use js to redirect the top constantly (like I did for installs..)

Thanks


The users userId and other parameters are available from the request parameters as "session." It is urlencoded JSON. If you are using php then do:

$session = json_decode(urldecode($_GET['session']));

This also provides the tokens used for graph requests.

If this is not what you require let me know.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜