使用 Facebook 群组页面“赞”;在画布选项卡中
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的 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.
我只是简单地取出标签,留下:
<头>
和中提琴
I just simply took the tag out leaving:
<html>
<head>
</head>
<div>
stuff here
</div>
</html>
and viola