使用 Facebook 群组页面“赞”;在画布选项卡中

发布于 2024-09-25 04:22:56 字数 455 浏览 0 评论 0原文

Facebook 最近宣布能够将“赞”按钮链接到 Facebook 页面。

我创建了一个简单的画布应用程序,并使用 FBML 成功添加了一个共享按钮,但是,我现在还需要插入一个“喜欢”按钮(我知道当顶部有一个“喜欢”按钮时添加“喜欢”按钮很奇怪页面的内容,但这就是客户想要的!)。正如帖子提到的,我需要实现我已经完成的 Graph Api。我已经直接在 Canvas URL 上进行了测试,效果很好,但是加载到选项卡时却不起作用 - 我收到以下错误:

FBML 错误(第 28 行):“fb:tab 下的非法标签“body” -position

...这是因为您只能使用 FBML(不允许使用 body 标签),而不能使用画布选项卡中的 Graph Api?目前我能做些什么吗

Facebook recently announced the ability to link a Like button to a Facebook Page.

I've created a simple canvas application and successfully added a share button using FBML, how ever, i'm now required to insert a 'Like' button also (i know adding a like button is strange when there's a like button at the top of the page, but thats what the client wants!). As the post mentions, i need to implement the Graph Api which i've done. I've tested this directly on the Canvas URL which works fine, how ever it doesn't work when loading into a tab - I get the following error:

FBML Error (line 28): illegal tag "body" under "fb:tab-position

...is this because you can only use FBML (where the body tag is not allowed) and not the Graph Api within a canvas tab?? Is there anything i can do at present?

Thanks

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

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

发布评论

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

评论(2

故事未完 2024-10-02 04:22:56

我的 Ruby On Rails 应用程序遇到了这个问题,这归因于 POST 请求的伪造保护。一旦我发现skip_before_filter完成了这项工作。我读过其他人也有类似的问题,他们是因为服务器接受 POST 请求时出现问题。只是想检查一下。

I had this problem with my Ruby On Rails application and it was down to forgery protection on POST requests. Once I figured that out the skip_before_filter did the job. I've read other people having similar problems and them being down to server problems accepting POST requests. Just a thought to check out.

本宫微胖 2024-10-02 04:22:56

我只是简单地取出标签,留下:

<头>

这里的东西

和中提琴

I just simply took the tag out leaving:

<html>
<head>
</head>

<div>
stuff here
</div>
</html>

and viola

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