• Resolved Siss

    (@slarsegmailcom)


    Hi, I recently moved my blog from bilderfrahjertet.com to amelone.no, and I used this:
    a2a_config.counts = { recover_domain: ‘https://bilderfrahjertet.com/’ };

    It did work, although very unstable. Then I shared an old Post, just to test. The post had 35 likes, but now it shows only 1 like and all the other posts shows zero. Is there a way to fix this?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author micropat

    (@micropat)

    Instead of 'https://bilderfrahjertet.com/' you want to use 'bilderfrahjertet.com' for recover_domain.

    And 'http' for recover_protocol.

    a2a_config.counts = {
        recover_domain: 'bilderfrahjertet.com',
        recover_protocol: 'http'
    };

    https://www.addtoany.com/buttons/customize/wordpress/share_count_recovery

    Thread Starter Siss

    (@slarsegmailcom)

    Thank you for Your quick answer! I changed it now, bot it is still the same. On bilderfrahjertet.com the Counts show, but still not on amelone.no. Only the one Count on the single post, as mentioned abowe.

    Plugin Author micropat

    (@micropat)

    Your old URLs did not have a trailing /, so to adjust for that:

    a2a_config.counts = {
        recover_domain: 'bilderfrahjertet.com',
        recover_protocol: 'http',
        recover: function(data) {
            // Remove the shared URL's trailing /
            return data.url.replace(/\/$/, '');
        }
    };
    Thread Starter Siss

    (@slarsegmailcom)

    Wow, thank you so much, now it is working ?? ?? ! I am so happy now!
    I don’t know what it means that it had no trailing.

    Now, just one more question: Will this also work if I delete my old site, bilderfrahjertet? My plan is to end that domain.

    Plugin Author micropat

    (@micropat)

    I don’t know what it means that it had no trailing.

    Forward slash ( / ) at the end of URLs.

    Will this also work if I delete my old site

    Yes, Facebook retains counts on deleted domains and URLs.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Recover counts on new domain’ is closed to new replies.