Facebook Open Graph 不清除缓存 [英] Facebook Open Graph not clearing cache

查看:28
本文介绍了Facebook Open Graph 不清除缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Open Graph 处理元标记时遇到问题.似乎 Facebook 正在缓存我的元标记的旧值.属性 og:titleog:url 的旧值仍在使用,即使我已经更改了它们.

我在

  • fbrefresh=CAN_BE_ANYTHING后输入网址
  • 示例:

    1. http://www.example.com?fbrefresh=CAN_BE_ANYTHING
    2. http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
    3. 或访问:http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912

    我昨晚遇到了同样的问题,我从某个网站得到了这个解决方案.

    Facebook 会保存您的缓存缩略图.即使您从服务器中删除缩略图/图像,它也不会刷新.但是 Facebook 允许你通过使用 fbrefresh

    来刷新

    我希望这会有所帮助.

    I'm having troubles with my meta tags with Open Graph. It seems as though Facebook is caching old values of my meta tags. Old values for Attributes og:title and og:url are still used, even though I have changed them already.

    I ran Lint on a page in my site, and this appeared:

    Notice that there are two values for og:title and og:url, and the last one prevailed. However, The last two entries are the OLD entries that I used for this site. I am now currently using these meta tags (you can verify if you view the source of the HTML):

    <meta property="og:title" content="Smart og rummelig pusletaske fra Petit Amour med god plads til alt &#8211; værdi 1.099 kr &#8211; køb nu kun 599 kr   "/>
    <meta property="og:description" content="Pinq.dk - Det gode liv for det halve"/>
    <meta property="og:type" content="product"/>
    <meta property="og:url" content="http://pinq.dk/tilbud/landsdaekkende/lissy/"/>
    <meta property="og:image" content="http://pinq.dk/wp-content/themes/pinq/images/logo-top.png"/>
    <meta property="og:site_name" content="Pinq" />
    <meta property="fb:app_id" content="161840830532004" />
    

    Why is Facebook caching og:title and og:url? Is anyone experiencing the same issue?

    解决方案

    1. Go to http://developers.facebook.com/tools/debug
    2. Enter the URL following by fbrefresh=CAN_BE_ANYTHING

    Examples:

    1. http://www.example.com?fbrefresh=CAN_BE_ANYTHING
    2. http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
    3. OR visit: http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912

    I was having the same issue last night, and I got this solution from some website.

    Facebook saves your cache thumbnail. It won't refresh even if you delete the thumnail/image from your server. But Facebook allows you to refresh by using fbrefresh

    I hope this helps.

    这篇关于Facebook Open Graph 不清除缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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