开发者

Losing Facebook context parameters when redirecting

开发者 https://www.devze.com 2023-01-20 04:25 出处:网络
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 redirec

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

精彩评论

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

关注公众号