如何使我的OpenGraph对象“被喜欢"?适当地? [英] How do I get my OpenGraph objects to be "liked" properly?

查看:76
本文介绍了如何使我的OpenGraph对象“被喜欢"?适当地?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有更多OpenGraph新手主义:

Still more OpenGraph newbie-ism:

我在自己的网站上定义了一个页面,其中包含适合于视频"的全套元标记.这是标准的OG视频;没有自定义的东西.一切都很好;该页面成功通过了对象linter,并被标识为video:movie.该页面还包含一个按常规"方式创建的赞"按钮-类"fb-like"的div,带有一组参数,以及一些激活的javascript.

I define a page on my site with a full set of metatags appropriate for a "video". This is a standard OG video; no custom stuff. All is well; the page passes the object linter successfully, and is identified as a video:movie. The page also contains a Like button created in the "usual" way -- a div of class "fb-like" with a set of parameters, and some activating javascript.

用户,Joe,转到页面并单击赞"按钮;发生以下情况:

Joe, a user, goes to the page and clicks the Like button; the following happens:

  • 出现喜欢"覆盖框,其中显示有关页面/对象,注释文本字段和发布"按钮的信息.
  • 按钮上的赞"计数器递增.
  • 但是,此框立即消失了,没有被单击,也没有输入任何内容. (从来没有真正的机会这样做.)
  • 赞"增量丢失;它可以回到以前的状态.
  • Joe的Facebook个人资料页面包含"Joe喜欢链接"条目,并正确描述了页面/对象,包括在个人资料页面上播放视频的能力.
  • Joe的朋友没有收到任何有关此喜欢的通知,尽管在Joe的活动日志中该喜欢被标记为公开".

现在,我在网站上定义了另一个页面,该页面几乎相同,但是仅具有基本种类的元标记,足以将其标识为OG网站".再次,短毛猫很高兴. Joe现在转到此页面,然后单击赞"按钮.这次,行为是正确的,或者至少是我所期望的:

Now, I define another page on my site that is virtually the same, but that has only the basic sorts of metatags, enough to get it identified as an OG 'website'. Again, the linter is happy. Joe now goes to this page and clicks the Like button. This time, the behavior is correct, or at least what I expect:

  • Like计数器递增.
  • 将出现叠加框,并停留在该框内,以供Joe输入某些内容.他这样做了,然后单击发布"按钮.
  • Like计数器保留其新增加的按钮.
  • Joe的FB个人资料页面包含一个带有他的名字的条目,他在"like"框中输入的评论以及页面/对象的描述.由于OG不知道这是视频,因此不能将其作为视频播放.顺便说一句,请注意,该条目仅由Joe的名字组成,而不是在其他情况下的"Joe喜欢链接".
  • Joe的朋友在其供稿中获得了一个条目-与Joe的个人资料页面上显示的内容相同.

我对此行为感到困惑-出于各种原因,我希望将页面表示为OG视频,但喜欢"行为只是行不通.有人看到可比的东西了吗?有什么建议吗?

I'm pretty baffled by this behavior -- I'd like to have the pages represented as OG videos for a variety of reasons, but the Liking behavior just isn't working. Has anybody seen anything comparable? Any advice out there??

推荐答案

这听起来像是一个错误,也许您应该在

This sounds like a bug, perhaps you should enter it in the bug tracker tool at https://developers.facebook.com/bugs/create

这篇关于如何使我的OpenGraph对象“被喜欢"?适当地?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆