Facebook 应用程序设置
我创建了使用 iframe 的 FB 应用程序,它工作正常,正如它应该的那样,但我需要检查从哪个页面调用它。
我希望不同的页面将不同的变量传递到该 iframe 位置。
我已经知道如何将其设置为三个级别(原始页面、应用程序页面和选项卡页面,具有不同的显示内容),但我需要检查它被称为哪个页面。
我认为可以通过两种方式完成:
第一种方式:找到基于使用此应用程序作为选项卡的页面传递特定变量的方法,然后将其重定向到正确的位置
第二种方式:找到在 facebook 之外创建新应用程序的方法(也许是API或其他东西)然后输入所有这些值,包括:应用程序名称、包含此变量的应用程序链接、应用程序选项卡链接、使用iframe而不是FBML...
我会喜欢使用2.方式...
我'我不是要求你给我看代码,我知道我需要做我的工作,我不是要求你为我做这件事,我只是寻求帮助,向已经创建了这样的东西的人寻求指导,为我指明正确的方向,我在哪里可以找到方法...
另外,请不要告诉我阅读一堆东西,例如 FB 文档或整本书,其中包含所有其他“此处未使用”的东西,我需要具体的有一个关于此的词的部分...
如果有人知道这方面的任何信息,请写在这里...
谢谢!
I created FB application that use iframes, and it's working okay, as it should, BUT I need to check from what page is calling it.
I want different pages to pass different variables to that iframe location.
I already know how to set up it to three levels ( original page, application page, and on tab page, with different display content ), but I need to check from what page it's called.
I am thinking that it can be done in 2 ways:
1 way: Find way to pass specific variable based on page that is using this application as tab, and then redirect it to right location
2 way: Find way to create new application outside facebook ( maybe API or something ) and then enter all those values including: App name, app link that have this variable included, app tab link, using iframe and not FBML...
I will love to use 2. way...
I'm not asking you to show me code, I know that I need to do my job, I'm not asking you to do it for me, I'm just asking for help, for directions from someone who already create something like this, to point me to right direction where can I find way...
Also, please don't tell me to read bunch of stuffs, like FB Documentation or whole book that have all other "not-used-here" stuffs, I need specific part where there is a word about this...
If someone know anything about this, write it here...
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“page”参数在(iframe)选项卡上的“新”signed_request 参数中传递。您可以“免费”获得所需的东西;)
http://developers.facebook.com/docs/authentication/signed_request/
The "page" parameter is passed along within the "new" signed_request parameter on (iframe) tabs. You get what you need for "free" ;)
http://developers.facebook.com/docs/authentication/signed_request/