What is the best way to move fb comments from http to https

We are now moving the Ruby On Rails website from HTTP to HTTPS. Our sites use the plugin fb-commentsto record user comments on different pages. During our testing, we found that when we switch the page from HTTP to HTTPS, Facebook seems to see this as a new page and no longer loads any of the previous comments for the page.

In other words, http://my.domain.com/page1they are https://my.domain.com/page1considered as separate pages with different sets of comments fb-comments.

Here is a snippet of our HTML that includes the current call fb-comments:

<div class="fb-comments"
     data-href="<%=url_for(:only_path=>false)%>"
     data-num-posts="<%=number_of_posts%>"
     data-width="<%=width%>">
</div>

Does anyone know the right way to get Facebook to return page comments regardless of protocol (HTTP vs HTTPS)?

+4
source share
1 answer

The only way to save afaik comments is to use the http URL in the data-href parameter. I do not think there are flaws.

+1
source

All Articles