I have a website with a like button to the homepage and several subpages with their own like button. When I "like" a subpage and I look in my facebook profile, the link that appears redirects back again to the home page. Can someone please explain em why this happens? Id be most grateful.
These are the subpages in question:
http://XXXXXXX
Thanks
On that page you have <meta property="og:url" content="http://www.waermepumpen.de" />
This means that regardless of which page actually has the Like button, you're telling Facebook that this page is another way of accessing the canonical URL http://www.waermepumpen.de
You should set the og:url meta tag to be the same URL which users will use to access the page - in the example you posted it's http://www.waermepumpen.de/waermepumper-des-jahres/galerie-der-waermepumper/no_cache/1/ - this should match the 'href' parameter of the tag too.
Related
I would like to clarify one thing.
I have a web page with a facebook like button.
In the head of the page, let's say www.exaple.com, I have
<meta property="og:url" content="https://www.example.com">
and no canonical link.
In the facebook like box I have
<div class="fb-like" data-href="http://www.example.com?strip=1" data-layout="box_count" data-share="false" data-action="like"></div>
The page www.example.com?strip=1 is slightly differentent from www.example.com.
I would expect that when I use the like button, in facebook I will find a post that points to www.example.com?strip=1, but this doesn't happen as I'm redirected to www.example.com.
Can you explain me why this happen? My guess is that Facebook goes to www.example.com?strip=1 and looks for og:url there. Since the og:url in www.example.com/strip=1 is www.example.com I am redirected to www.example.com.
Can you confirm that? Do you have any suggestion on how to keep the og:url as it is but make the like button redirect to www.example.com/strip=1?
For completeness, in the facebook debugger, feeding it with www.example.com/strip=1, it gives me www.example.com?strip=1 as fetched URL and www.example.com as canonical URL.
With migration of facebook like button, the recommended approach is to point href of the like button to the Facebook Page, but keep the og:url tag on the page the same. What are the results of this:
1)Are the users going to see posted hrefs to A)the facebook page or B)the page specified in the og:url tag?
2)What url are the shares going to be counted against:A)the facebook page or B)the page specified in the og:url tag?
I am adding a FB like button to my page, and currently when I "Like" the page, it only says it on my personal page with a small link to the facebook page associated to my website. I want it to post a picture, description, and the link to my site. I am using the code generated from this page: https://developers.facebook.com/docs/reference/plugins/like/
I debugged it and it says properties are missing even though I have them included in the code...
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.audiblecoffee.com%2Fbeta321432
Any reason on why this isn't working?
<meta property="og:url" content="http://www.audiblecoffee.com">
This will make Facebook use http://www.audiblecoffee.com to look for OG tags, not the submitted URL. Change it to http://www.audiblecoffee.com/beta321432/ (or leave it out) and things'll work fine.
I'm implementing a facebook like button on a simple blog/news section I created in an MVC 3 web application.
I used the XFBML way to implement this.
It works, but not completely.
When clicking and checking it on facebook, it shows the title I specified.
Here is a piece of code.
The viewbag information comes from my view, this is in the layout/master page.
<meta property="og:title" content="#ViewBag.FGTitle" />
But since it's a news item, I also want the content of the article to be displayed.
It only shows, the title, the site name and that's it.
I checked the facebook developer page, but I cant find a meta property/Open graph type in which i can set this content.
any ideas?
see the facebook url linter it shows you exactly what facebook sees when greping the url. Also you should read up on the other meta tags
I have a website at http://www.mydomain.com which has a corresponding facebook page at https://www.facebook.com/pages/mydomain/123456789.
I am looking for a way to integrate this facebook page URL into the open graph headers so that when someone shares my page, it actually shares the Facebook page instead of the site's URL.
Is this possible?
You can now do this by setting the og:url meta tag to the url of your Facebook page. Keep in mind that if you do this, other networks that use Open Graph tags will probably share your Facebook page instead of the site's url, so make sure that's what you want.
<meta property="og:url" content="http://www.facebook.com/your-page"/>
Perhaps you already figured this out as this is an old question, but since I stumbled upon it... If I understand your question correctly, you do not even need the ogp meta tags to accomplish what you want to do. All you need to do is go to http://developers.facebook.com/docs/reference/plugins/like/ and input your facebook page url in "url to like", https://www.facebook.com/pages/mydomain/123456789 from your example. Then select the options you want including the "send" button. Then get the code and paste it where you want it in your website. Now whenever someone clicks "like" on your website or clicks "send" to share your website, they will actually be liking or sending the url to your Facebook page and not your website. Is that what you were looking for?