我如何添加 fb_multi_friend_selector、Facebooker2

发布于 2024-09-25 22:12:41 字数 408 浏览 0 评论 0原文

您好,我想添加到我的应用程序多好友选择器。 我在助手中找到了一个方法:fb_multi_friend_selector。

我应该做的只是:

 <%= fb_multi_friend_selector("Test message") %>    

因为它对我不起作用。我的用户在我的应用程序中经过身份验证。我可以看到我所有的 Facebook 好友姓名(带有 current_facebook_user.friends)...等。所以我已经登录了。并且我有权限:perms => '发布流'。

我应该怎么做才能让 fb_multi_friend_selector 工作? 我正在使用 Rails 2.3.5。还有 facebooker2 和 mogli gem。 非常感谢您的任何答复!

Hi i want to add to my app multi-friend-selector.
I found a method in helpers: fb_multi_friend_selector.

Am i supposed to do just:

 <%= fb_multi_friend_selector("Test message") %>    

Because it is not working for me. My user is authenticated in my app. I can see all of my fb friends names(with current_facebook_user.friends)...etc. So i am logged in. And i have the permission :perms => 'publish_stream'.

What should i do to get fb_multi_friend_selector working?
I am using rails 2.3.5. And facebooker2 with mogli gem.
Thank you very much for any answers!

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

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

发布评论

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

评论(1

巷子口的你 2024-10-02 22:12:41

尝试将其保留在您的视图中:

    <fb:serverFbml>
        <script type="text/fbml">
            <fb:fbml>
                <fb:request-form
                    method='POST'
                    type='an invitation to do this.'
                    content='I invite you to do this.  
                        <fb:req-choice url="http://apps.facebook.com/smiley/yes.php" label="Yes" />
                        <fb:req-choice url="http://apps.facebook.com/smiley/no.php" label="No" />'
                    <fb:multi-friend-selector actiontext="I invite you to do this.">
                </fb:request-form>
            </fb:fbml>
        </script>
    </fb:serverFbml>

Try sticking this in your view:

    <fb:serverFbml>
        <script type="text/fbml">
            <fb:fbml>
                <fb:request-form
                    method='POST'
                    type='an invitation to do this.'
                    content='I invite you to do this.  
                        <fb:req-choice url="http://apps.facebook.com/smiley/yes.php" label="Yes" />
                        <fb:req-choice url="http://apps.facebook.com/smiley/no.php" label="No" />'
                    <fb:multi-friend-selector actiontext="I invite you to do this.">
                </fb:request-form>
            </fb:fbml>
        </script>
    </fb:serverFbml>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文