0

我试图让用户使用 Facebook OG 在我的网站上与 Facebook 共享产品。此外,我需要通过VigLink Everywhere实现一个附属链接。

因此,共享的 URL 应该类似于:

http://redirect.viglink.com/?key=475a93b990315b7d41088aeaf46264c9&u=http%3A%2F%2Fwww.dev.buyvolo.com%2FDetails%3FdealId%3D11578%26variantId%3D11967

我把这个URL结构放在og:url中,所以页面元标记如下:

<meta property="og:type" content="vololocal:clothing" />
<meta property="og:url"   content="http://redirect.viglink.com?key=475a93b990315b7d41088aeaf46264c9&amp;u=http%3a%2f%2fwww.dev.buyvolo.com%2fDetails%3fdealId%3d11578%26variantId%3d11967" /> 
<meta property="og:title"   content="Helix Dress - Black Sequin" /> 
<meta property="og:description"   content="Killer black sequin body-con dress featuring silver accents with a plunging sweetheart neckline and curved hem. Zip closure at back, boning. Fully lined." /> 

问题是 - 使用Facebook OG Debugger进行调试时出现以下错误:

Error Must Be Fixed:
There was an error in fetching the object at URL 'http://www.dev.buyvolo.com/Details?dealId=11578&variantId=11967', or one of the the URLs specified via a redirect or the 'og:url' property including one of http://redirect.viglink.com?key=475a93b990315b7d41088aeaf46264c9&u=http%3a%2f%2fwww.dev.buyvolo.com%2fDetails%3fdealId%3d11578%26variantId%3d11967.

我怎样才能解决这个问题?我做错了什么?

4

1 回答 1

0

CBroe 通过评论说的是正确的。无法将重定向 url 指定为 og:url。

og:url 必须是您通过 og 属性的元标记定义的对象 url。

在你的情况下 og:url 应该是:http ://www.dev.buyvolo.com/Details?dealId=11578&variantId=11967

(我不确定 fb 是否喜欢 GET 参数 - 最好是http://www.dev.buyvolo.com/Details/11578/11967之类的东西。)

但是 - 当您为 fb 提供正确的 og:url 并且用户在 facebook 中单击此链接时,您可以检查 GET 参数。Facebook 向您发送以下参数:

?fb_action_ids=<actionId>
&fb_action_types=<app_namespace>:<action>
&fb_source=other_multiline
&action_object_map=<action_object_map>
&action_type_map=<action_type_map>
&action_ref_map=[]

因此,如果您使用您的应用和操作检测到 fb_action_types,那么您可以重定向到您的会员页面,该页面会将用户重定向回您的网站。

我知道这听起来很难看,但看起来这是让您的会员处理用户故事的唯一方法。

于 2013-11-13T11:29:13.320 回答