[英]Facebook Comment Plugin not Loading for Github Page
我在 GitHub-Pages 中有一個博客,我想在其中加載 Facebook 評論插件:
https://juspreet51.github.io/blog_posts/demo.html
從 Facebook Comment Plugin Doscumentaion ,我使用了以下參數:-
然后在以下 .html 文件中使用生成的代碼:
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
</head>
<body>
<!-- facebook plugin JavaScript SDK -->
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v8.0" nonce="uOgIM47N"></script>
<h1>Hello World</h1>
<h3>Below this line, ideally comment should appear</h3>
<!-- comments to appear below -->
<div class="fb-comments" data-href="https://juspreet51.github.io/blog_posts/demo.html" data-numposts="10" data-width=""></div>
</body>
</html>
仍然,評論插件沒有加載,你能指出可能出了什么問題嗎?
*當我從手機瀏覽器訪問鏈接時可以看到評論部分
所以我嘗試清除我的 PC 瀏覽器歷史記錄和緩存,仍然在 PC 瀏覽器中看不到評論部分,但只能在移動瀏覽器中看到
在您遇到問題的瀏覽器中檢查網站的控制台,並檢查您的瀏覽器是否阻止了 cookie
錯誤可能如下所示:
A cookie associated with the cross-site resource at https://facebook.com/ was set without the `samesite` attribute. It has been blocked
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.