Facebook 'like' referral clicks adding variables; not recognising the page linked as the page liked

后端 未结 2 685
温柔的废话
温柔的废话 2021-02-16 00:23

So i have a site, Let\'s call it foo.com and all of the pages have the Like Button plugin on it (same code rehashed on each page)

so I \'like\' http:/

相关标签:
2条回答
  • 2021-02-16 01:19

    Not only is it ugly, it also means that the like button is not counting for the /projects page, but the new /projects?fbcrap=WHYAREYOUHERE

    Put the Open Graph meta tag for og:url into your /projects page, and have it say the page’s URL is actually http://example.com/projects, no matter what kind of query string parameters might be attached.

    When Facebook’s scraper will fetch http://example.com/projects?fbcrap=WHYAREYOUHERE when this address is about to be liked, Facebook will realize that the actual address/URL is just http://example.com/projects, and it should therefor count the like for this URL and not something else.

    0 讨论(0)
  • 2021-02-16 01:25

    Looking here, it looks like you should specify the href in the like button:

    <fb:like href="http://pandaz.co.uk/projects/" width="450" height="80"/>
    

    Also, you should consider reorganizing the og: meta data on the top of the HTML, just after the title in the header.

    Cheers, Apoc

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