Like count for almost same URL (HTTP, HTTPS)

前端 未结 1 718
孤街浪徒
孤街浪徒 2021-01-16 04:53

I set like button on every page of my app. But facebook has two modes o viewing pages: unsecured (HTTP) and secured (HTTSP), so how should I do code href in fb:like to show

相关标签:
1条回答
  • 2021-01-16 05:11

    Just put the http url of the page regardless of the protocol the user is using. There's no reason to use https in the fb:like button since it's not being loaded anyway.

    Another thing is that in the open graph meta tags, under the url param (og:url) put the http version always.

    There's no problem to put the url of the fb canvas page in like button you have in the "direct url", though I think that I would do it the other way around, in the canvas page inside fb I would use the direct url in the like button.

    0 讨论(0)
提交回复
热议问题