facebook is not recognizing my meta tags

前端 未结 10 1002
长发绾君心
长发绾君心 2021-01-02 02:55
    
   

        
相关标签:
10条回答
  • 2021-01-02 02:59

    I had the same problem and what I found out was that Facebook recognizes

    AddMetaData("og:url", "yourURL")
    

    and then goes to yourURL to get the other tag info like og:title...etc

    0 讨论(0)
  • 2021-01-02 02:59

    Check the HTTP response headers your server is sending out for that page.

    If the Content-Length field is missing then that is your problem. In my experience, Facebook will not parse your page if that field is missing.

    0 讨论(0)
  • 2021-01-02 02:59

    What we noticed is that the facebook crawler is willing to follow redirects in the og:image url but the facebook client does not. Take this example.

    Try posting the following link into facebook. If facebook has seen the url before, their crawler will have properly cached the image. If it hasn't, it will not. To simulate this behavior, put a random string into the ref parameter of the url below.

    http://www.blipboard.com/4fac51e571272e0100000015?ref=1

    If you try to post this url (with the random id inserted) it will fail to show the correct image the first time. If you then reload the facebook page and try to post again, this time it will work.

    The meta-tag is the following (which requires a redirect):

    <meta property="og:image" content="http://graph.facebook.com/1000484548/picture?type=large" />
    

    The best explanation I have for this is that the facebook client code doesn't follow redirects but the crawler does (as does the debugger)

    0 讨论(0)
  • 2021-01-02 03:01

    try removing

    <meta property="fb:app_id" content="162180660488445" />
    <meta property="fb:admins" content="57728908711" />
    

    and use this, to test your url and error info

    http://developers.facebook.com/tools/debug

    0 讨论(0)
  • 2021-01-02 03:03

    I know that this is an old question but I can't really see the answer that I find - just remove slash (/) at the end of facebook meta code.

    So Facebook create wrong code if you not using right DOCTYPE:

    <meta property="og:title" content="Katha Screenplay Darsakatvam (KSD) Appalaraju "/>
    

    right is:

    <meta property="og:title" content="Katha Screenplay Darsakatvam (KSD) Appalaraju ">
    
    0 讨论(0)
  • 2021-01-02 03:05

    Might also be wrong encoded double quotes in the meta tags, if e.g. you have copied the code from a browser into your editor.

    I found a huge number of bugs in my pages markup by using the linter at https://developers.facebook.com/tools/debug/

    Down below is a function: "See exactly what our scraper sees for your URL" which is really helpful.

    0 讨论(0)
提交回复
热议问题