-1

Possible Duplicate: How can I move a URL via 301 redirect and retain the page’s Facebook likes and Open Graph information?

I run this blog http://everythingyoumightneed.blogspot.comI am thinking of moving my blogspot blog to a custom domain. I did some research and I found out that if I do so I will lose all my G+ plusones and Facebook likes for my posts. Same thing with Facebook comments. (I have Facebook comment social plugin on each post of my blog)

My question is, whether there is a way, using to avoid this

Community
  • 1
  • 1
John Demetriou
  • 4,093
  • 6
  • 52
  • 88

1 Answers1

2

You cannot change the url associated with the comments. You can, however, modify the code on your new site so that each post points to the comments page for the old url.

on each page on the new domain this will associate the facebook comments with the old domain:

<fb:comments href="THE-OLD-URL"></fb:comments>

So for example for http://newdomain.com/thenewpage.html:

<fb:comments href="http://olddomain.com/theoldpage.html"></fb:comments>

To get this working, first get facebook comments working on your new site using the facebook documentation. Once you have that working, you can put the code above anywhere on the page (I usually put it in the head somewhere). That will tell facebook to use the old url instead.

This will apply to likes, comments, and everything else.

manishie
  • 5,302
  • 1
  • 20
  • 21
  • where shall I put this code?? also what about likes and +1s??? – John Demetriou Nov 02 '12 at 23:14
  • Sorry, I've never done the +1's. This page seems to suggest that you can put an href attribute within the button, pointing to the old url. https://developers.google.com/+/plugins/+1button/#target-url – manishie Nov 04 '12 at 06:25