Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook iframe application issue

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

it shows this window 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

like image 529
PrateekSaluja Avatar asked Feb 22 '11 10:02

PrateekSaluja


People also ask

Can I use iFrame on Facebook?

Adding Iframe App to your Facebook PageGo to your Facebook page and on the search bar enter “Static HTML: iframe tabs” or visit this link https://apps.facebook.com/static_html_plus.

How do you embed a form on Facebook?

Just click the Forms tab at the top of your page and then click the Share tab on your form. That will take you the Share section. Scroll down about halfway and you'll see the embed code.

How do I use iFrame tags?

Definition and UsageThe <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document. Tip: Use CSS to style the <iframe> (see example below). Tip: It is a good practice to always include a title attribute for the <iframe> .


1 Answers

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

like image 164
PrateekSaluja Avatar answered Sep 24 '22 15:09

PrateekSaluja