Skip Navigation LinksHome > Categories > Code from a Category

Developing Face book Application with .NET Using iframe in FBML

User Name: tippu
Name: King SheZ
Contact Me:
Home Page:
7 years of enterprise application development, so far in my career i have worked on enterprise web applications with millions of users,i have also worked on many integrations between applications, i h... [More]
Viewed Times: 2309
Add Date: 07/21/2011
Continuing from my last post, in my this post i will explain how to develop facebook application using Iframe.

If you need to "insert" a page within your application FBML canvas, you can use the element (see more at Fb:iframe). For example, I employ the element to reference an ASPX page in order to retrieve a user IP address via Request.ServerVariables["REMOTE_ADDR"]. Remember that the FBML application is within the canvas within Facebook... so you'll get something like, which is the IP address of the Facebook server, not of your user. Then, based on the given IP address, I can display various information, for example the weather forecast:

In the page code, to reference the element:

This is very similar to using the HTML element.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.