English 中文(简体)
链接Facebookiframe的网页
原标题:Link to a page within Facebook iframe

寻找一种途径,在面对面的字眼网页上链接网页

......

http://www.facebook.com/designmystyle/app_244351832329915

would be ......mething like

http://www.facebook.com/designmystyle/app_244351832329915?http://www.lickmystyle.com/contact/

我在此尝试了以下方法:http://www.codingforums.com/archive/index.php/t-85547.html“rel=“nofollow”http://www.codingforums.com/archive/index.php/t-85547.html。 使用

    <script type="text/javascript">
    <!--

    function loadIframe(){
    if (location.search.length > 0){
    url = unescape(location.search.substring(1))

    window.frames["app_runner4f84331f0576e6f73380702"].location=url
    }
    }

    onload=loadI

frame
//-->

如果估算值_runner4f84331f0576e6f380702是机体的名称或背面,那么这是我唯一能够发现有810px的宽度为800px的人。

任何关于能否做到这一点的想法都将是巨大的。

最佳回答

如果它有一张面纱,它就应当有apps.facebook.com,而不是www.facebook.com

如果你指示用户:

附录

脸谱仪将显示:

www.yourdomain.com/canvas-path?param=value

Then you can get that parameter like any other GET parameter and what you want with it. One thing though, if that parameter is a url then it should be url encoded, other wise things will go wrong.

我不理解的是,你在试图把你想要通过的圆顶作为参数时,怎么做,“应用”什么?


Edit

吴 Oh一页,一页, s,我错失那部分。

我以前从未使用过,但在最后一节(与Facebook AP整合”)中说过。 页: 1

your app will also receive a string parameter called app_data as part of signed_request if an app_data parameter was set in the original query string in the URL your tab is loaded on. For the Shop Now link above, that could look like this: "http://www.facebook.com/YourPage?v=app_1234567890&app_data=any_string_here". You can use that to customize the content you render if you control the generation of the link.

根据我的理解,这正是获得数据所需要的。

由于你无法进入父母窗口,你怎么能够改变主机的长度(网页在不同的领域,而浏览器则由于交叉主宰政策而无法使用)。

你可以做的是:

document.location.href = URL;

你在你自己的网页上,确实是说,你是在一旁居住。

The thing is that you don t need all of that, just be aware in the server side of the parameter that is passed to you from facebook (from the query string) if such exists, and render the page according to that. There s no reason to render a page that then redirects the page to another url, when you already know what the user wants, you re just making the user make a redundant round trip to your server for nothing.

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签