iframe应用程序集成到我的粉丝页面

时间:2011-10-20 11:02:33

标签: facebook iframe

我的自定义欢迎页面集成到我的粉丝页面时出现问题。我将自定义html / css和图像上传到根目录上hostgator上的服务器中。服务器下的主要域名是我正在创建的粉丝页面。但是在欢迎选项卡下的粉丝页面中,它显示的是我的整个网站,而不是我的自定义欢迎页面。这里有什么问题?你能定义画布URL和页面标签页吗? 我在这个问题上遇到了严重的问题。需要你的帮助。

1 个答案:

答案 0 :(得分:0)

您的网页网址标签指向您的网站,或者您可能有以下内容:

root
|
|-- index.html // related to the website and not the facebook page
|-- fb_index.html // should be loaded when called on Facebook
|-- other css, image and html files

您使用默认域作为网址:domain.com将加载domain.com/index.html

我更喜欢在根目录下创建一个文件夹(或以下两种情况):

root
|
|-- index.html // related to the website and not the facebook page
|-- other css, image and html files
|-- fb // all Facebook related files tab and Canvas if needed in the future
    |
    |-- tab
        |
        |-- index.html // this should be loaded inside Facebook
        |-- other css, images, js related to the Facebook tab

现在,您可以将应用设置中的网址设置为:domain.com/fb/tab/