使用 Facebooker 在 Rails 视图中使用 FBML

发布于 2024-08-30 11:14:58 字数 716 浏览 2 评论 0原文

我已成功连接 Facebook Connect 应用程序,一切正常。我可以通过 Facebook 注册新用户,也可以将现有用户与 Facebook 关联起来。那里没有问题。

但是,现在我尝试添加一个邀请页面,用户可以在其中查看他们的哪些朋友拥有该应用程序,然后向他们显示 Facebook FMBL 多选表单以邀请朋友加入。

这是该 FBML 标签的文档。

http://wiki.developers.facebook.com/index.html php/Connect/Integrating_an_Invite_Form_into_Your_Website#Creating_a_Full_Multi-friend_Selector_Request_or_Invite

但是,我无法让它在我的 Rails 视图中工作。

我是否需要设置一些特殊的东西才能在 Rails 视图中使用 FBML?

这不是 CANVAS 应用程序,这意味着我希望人们访问我的网站而不是通过 Facebook 访问该页面,但我觉得我错过了一些东西。

I have successfully wired up a Facebook Connect application and everything is working fine. I can sign new users up with Facebook, or I can link existing users with Facebook. No problems there.

However, now I am trying to add an Invite page, where a user can see which of their Friends have the application, and then show them a Facebook FMBL Multi Select form to invite friends into it.

Here is the documentation for that FBML tag.

http://wiki.developers.facebook.com/index.php/Connect/Integrating_an_Invite_Form_into_Your_Website#Creating_a_Full_Multi-friend_Selector_Request_or_Invite

However, I cannot get this to work within my Rails view.

Do I need to setup something special to use FBML in my Rails views?

THIS IS NOT A CANVAS Application, meaning I want people to come to my site and not visit the page through facebook, but I feel like I am missing something.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

再见回来 2024-09-06 11:14:58

如果您开发 facebook connect 站点,它会使用 XFBML。 XFBML 用于 Facebook connect 和 iframe 应用程序,FBML 用于 Facebook canvas 应用程序。并且,facebook 多好友选择器是 FBML 标签。

但是,您可以在 XFBML 内部调用 FBML,因此您应该检查此页面。

http://wiki.developers.facebook.com/index.php /Fb:serverFbml

这可能会有所帮助。

if you develop a facebook connect site, it uses XFBML. XFBML for Facebook connect and iframe applications and FBML for facebook canvas applications. And, facebook multi-friend-selector is FBML tag.

But, you can call FBML inside of XFBML, so you should check this page.

http://wiki.developers.facebook.com/index.php/Fb:serverFbml

this could help.

相思碎 2024-09-06 11:14:58

您的文档类型应包含 FBML 命名空间 &您应该加载 featureload.js.php 脚本,请参阅: http: //wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site#Rendering_XFBML_and_Other_Facebook_Connect_Features

Your doctype should include the FBML namespace & you should be loading the featureload.js.php script, see: http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site#Rendering_XFBML_and_Other_Facebook_Connect_Features

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文