开发者

Facebook iframe application issue

I have developed a face book iframe application in .net c#.First time when user access iframe application

Facebook iframe application issue

it shows this w开发者_高级运维indow but it should ask for permission & allow user to access my app. When i click go to face book.com it shows permission window.after that when i choose allow its redirecting me to my canvas URL out side the face book.when i try to access 2nd time its working fine.The issue is that for every first time user who want to access the app ist shows the existing window.Please help me to solve this issue.

Thanks


I figure it out.@pastylegs said right.Thanks for your answers.Let me elaborate it.Most of developer just redirecting to specific url so you have to redirect on top window.

1)if you are using a tag so use target=_blank.

2)If your are using any other thing to redirect in any technology so just use

top.location.href='" + codedataurl + "'

where codedataurl is your facebook authentication url which contains client id,redirect url & all.

I hope it will help you guys.

Thanks


If you are using iframes, you need to make sure that when you redirect the user to the authorization dialog, you do so on the top window of the users browser. You can do this using javascript (instead of just a redirect URL).

http://developers.facebook.com/docs/guides/canvas/#auth

Maybe this is the problem?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜