开发者

FBML in Rails views using Facebooker

开发者 https://www.devze.com 2022-12-28 00:24 出处:网络
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.

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_开发者_JAVA技巧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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消