Shaikh Sonny Aman’s Blog

previously www.mailtoaman.com

Using fb:iframe

Posted on | February 20, 2008 |

I am totally new to facebook application development and taking help from resources available on facebook developers’ site at http://developers.facebook.com.

I planned to write down my problems and workout as I go through the journey in learning facebook application.

Now, I wanted to use fb:ifram. I plaved a test.php file echoes hello world on my application folder at my server and used the following code:

<fb:iframe src = “test.php” /> 

Ooops.. facebook wraped the output with facebook layout.

Now, on http://wiki.developers.facebook.com/index.php/Fb:iframe  it is written:

“You must use your server’s URL as the

src

for your iframe. Otherwise, apps.facebook.com wraps your page with the Facebook layout.”
Okey, I update the code :

<fb:iframe src = “www.myserver.com/myapp/test.php” />

Still, no luck.

Now, blindly added http:// at the beginning like

<fb:iframe src = “http://www.myserver.com/myapp/test.php” /> 

Bingo, now its working.

I think  “You must use your server’s URL as the

src

for your iframe”  is little bit ambiguous, it should inform that I must write the protocol i.e. “http://”.

Comments

4 Responses to “Using fb:iframe”

  1. Facebook » Using fb:iframe
    February 20th, 2008 @ 3:45 am

    [...] Off-notes off the mind wrote an interesting post today on Using fb:iframeHere’s a quick excerpt … com wraps your page with the Facebook layout….“You must use your server’s URL as the src for your iframe. Otherwise, apps. facebook….I planned to write down my problems and workout as I go through the journey in learning facebook application. Now, I wanted to use fb:ifram. I plaved a test…. Ooops. . facebook wraped the output with facebook layout. Now, on http://wiki. developers. facebook. com/index…. [...]

  2. blob mam
    April 6th, 2008 @ 10:20 am

    I’m trying to keep away from reading posts like this. It is totally meaningless. Ain’t it shame to post rubbish like this?

  3. Green_knight
    April 9th, 2008 @ 3:02 am

    Well this is depressing. Stop writing like that, your posts are spoiling your reader’s mood. Boring.

  4. \')/*
    July 21st, 2008 @ 3:49 pm

    ekibastos…

    ekibastos…

Leave a Reply