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

后端 未结 2 701
温柔的废话
温柔的废话 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条回答
  •  Happy的楠姐
    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.

提交回复
热议问题