开发者

Grant Extended Permissions within iFrame application tab

开发者 https://www.devze.com 2023-03-31 00:39 出处:网络
I\'m trying to grant extended permissions while keeping a user \'on\' a fan page application tab using the php sdk.

I'm trying to grant extended permissions while keeping a user 'on' a fan page application tab using the php sdk.

When I try this hoping to have the dialogue appear within the iFrame, a redirection is given to a a 开发者_开发知识库facebook logo which then asks for authorisation in the "_top" window - same as if I'd set this on the link element.

If granting permissions this way I'm then redirected to the web page, when I want to go back to the tab; using the tab URL for a redirect doesn't seem to be possible.

Is there a way around this? The intended action will be posting a link on a users wall once they've given permission.


call the authorize dialog by setting the "_top" window. Once the user authorizes your app and you are certain that you do indeed have an authorized user, use

header("Location: http://www.facebook.com/PAGENAME?sk=app_APPID");

This should allow them to authorize and then on success be redirected to the tab on your page.

0

精彩评论

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