Linter gives “Error parsing URL” error

前端 未结 10 2415
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 12:42

GOAL: I\'m trying to apply a Like button to my blog - this is my first time trying it.

BEHAVIOR: The button shows up, but when someone clicks \"Like\", the word \"

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

    It seems there are many cases where developers are encountering the message:

    Error Parsing URL   Error parsing input URL, no data was scraped.
    

    and they are unable to solve this. I think the best way to tackle this problem is to get Facebook to provide more detailed error messages. Please go to their bug tracker and comment, subscribe, or add to the repro counter.

    0 讨论(0)
  • 2021-01-02 13:15

    I get this error when my .htaccesses files haven't

    RewriteCond %{HTTP_REFERER} !^$
    

    sometimes i dont add this line in order to prevent direct linking of images and stuff. if i take it off, the debug tool goes ok.

    0 讨论(0)
  • 2021-01-02 13:19

    You'll get this if FB has issues parsing any of the og tags. You can usually find the issue by following these steps:

    1) First thing to check, go through and make sure there isn't anything obvious. Often if you're using something like WordPress simple things can get complicated. View the source and make sure everything is as you think it should be.

    2) Visit any URLs. Linking to incorrect og:url or og:image URLs can cause this error.

    3) Your og:image URL should be https (as of Oct 1st, 2011). You will get this error if it is not (at time of writing, this sort of thing can change).

    If you follow these steps and still have issues then go back to basics. Remove all tags and add each one individually, running the debugger every time. At least that way you'll learn which tag is causing a headache.

    0 讨论(0)
  • 2021-01-02 13:19

    I found that Facebook gave me this error if any of my "og:" meta tags other than "og:image:secure_url" contained an https:// link.

    The best debug procedure seems to be to remove all meta tags from your page, then add them back one by one, and fix any that cause the linter to break.

    0 讨论(0)
  • 2021-01-02 13:23

    I had the same problem where my URL I was using in the debugger had this:

    www.mysite.com?s=&blah=yes
    

    Facebook didn't like the s query string not having a value.

    0 讨论(0)
  • 2021-01-02 13:24

    Aren't you setting incorrect link?

    CASE 1: // OK
    <meta property="og:image" content="http://exsample.com/test.jpg" />
    
    CASE 2: // Error parsing input URL, no data was scraped.(No Image Mime)
    <meta property="og:image" content="http://exsample.com/" />
    
    0 讨论(0)
提交回复
热议问题