Facebook “like” referral clicks that add variables; do not recognize the page associated with the page you liked

So, I have a website, let’s call it foo.com , and on all pages there is Like Button plugin (the same code was repeated on every page)

so i like ' http://foo.com

Messages on my wall with a link, everything is beautiful and dandy

I do the same with my projects page - http://foo.com/projects

He says in the information when you like it (the drop that occurs when you click “like”) that they “liked” http://foo.com/projects . Things are good; However, the actual link on Facebook:

http://foo.com/projects?fb_action_ids=10151073089123411&fb_action_types=og.likes&fb_source=other_multiline&action_object_map=%7B"10151073089123411"%3A10151036996391185%7D&action_type_map=%7B"10151073089123411"%3A"og.likes"%7D&action_ref_map=%5B%5D

Not only is this ugly, it also means that a similar button does not take into account the / projects page, but the new /projects?fbcrap=....

{edit}

Also noticed that you can enter an infinite loop.

Person A likes http://foo.com/projects

Person B clicks link http://foo.com/projects from person Wall Person B liked http://foo.com/projects?randomhashstuff

Person C clicks the link http://foo.com/projects?randomhashstuff from person B of the wall Person C liked http://foo.com/projects?anotherrandomhash

Result:

  • /projects = 1 like
  • /projects?randomhash = 1 like
  • /projects?anotherrandomhash = 1 like

Where /projects should be 3 like.

+7
source share
3 answers

Not only is this ugly, it also means that a similar button does not take into account the / projects page, but the new / projects? fbcrap = WHYAREYOUHERE

Put the Open Graph meta tag for og:url on the /projects page and say that the URL of the pages is actually http://example.com/projects , no matter what query string parameters can be attached.

When the Facebook scraper will retrieve http://example.com/projects?fbcrap=WHYAREYOUHERE , when you like this address soon, Facebook will realize that the actual address / URL is just http://example.com/projects , and that’s what it takes consider similar for this url, not something else.

+4
source

I am sure that this is deliberate, additional parameters allow you to determine what "how" caused the story that the user (incoming) saw, and tell you where on Facebook they saw it and clicked on it.

The documentation, which shows many of the possible options for fb_source ( https://developers.facebook.com/docs/fb_source/ ) and fb_action_ids and fb_action_types , contains an Open graph of the types of actions and identifiers that contributed to the story that the user clicked (for example, X liked Y and Z of other pages in SiteName), will have several action identifiers representing each as a button is pressed)

{edit}, and as CBroe said, the way to fix this is to have a set of Open Graph meta tags on your site that tell Facebook about the URL of the content / object itself, even when it handles additional query string parameters

0
source

Look here , it looks like you should specify href in a similar button:

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

In addition, you should consider reorganizing the og: metadata og: at the top of the HTML immediately after the title in the header .

Cheers, Apoc

0
source

All Articles