facebook like button migration(og:url vs href in the like button) - facebook

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?

Related

Why does FB sharer use only the OG meta tag details on the home page?

I have a project, coded on codeigniter, which is basically a collection of posts by different users. While adding the fb share button and clicking on it, The image, title and description content is taken from the header of the home page and not of the page(view) where the share button is placed?
As mentioned here, The issue was that only those users could view the page who are signed in, and therefore even fb wasn't able to scrape the info from there.
EDIT: Whats important here is how FB scrapes the info. Apparantly the link you provide inside data-href if parsed by FB and they capture the og meta tags from the header on that page. However if you restrict those pages to logged in users, FB is also unable to parse the page and thus it reverts to the base URL's meta tags.

Like button likes Facebook Auto Created Page rather than my Own Facebook Fanpage

I have an Official Facebook page I've setup for my new company.
I have a like button on my website with the appropriate meta tags related to that website.
But when Someone clicks the "like" button, it "likes" a page on facebook that facebook has automatically created thats not related to my own Facebook Fan Page using the META tags into from my webpage. I am using the iframe code for the like button.
How can I stop this happening? Thanks so much.
On the site you have chosen the Style of your "like" Button you have to put in the Url of your company Facebook page again, if you don't do this you'll get a like-Button for a Facebook page.

Facebook like button links to the home page

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.

fb:comments Change the URL that's posted to facebook

I've added fb:comments to a page that sits in an IFrame in another page. If the user clicks the "Post comment to my Facebook profile" the source URL posted on their Facebook wall is the IFrame source, and not the parent page. Is there a way to change this URL in the fb:comment options?
I've tried the callbackurl & returnurl options, and neither of those work. Also, setting opengraph meta tags on the IFrame source doesn't work either.
*edit: Code requested
<fb:comments canpost='false'></fb:comments>
If you know the parent page url, set it in the href value of the comments plugin like this:
<fb:comments href="http://urlOfOuterPage.com"></fb:comments>

Using Open Graph Protocol to Link Site with Facebook Page

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?