• 未分類
  • 0

FB使用開放社交外掛注意事項

有人問到使用 留言 功能卻無法在應用程式管理介面進行管理

官方說明文件

https://developers.facebook.com/docs/plugins/comments#moderation

上面有提到使用管理有兩種方式

一種是使用AppID 或者 Admins 設定UID

由於提問是希望進入管理介面進行管理

但都沒有看到對應的資料

原因是因為 留言也屬於 『開放社交外掛』  所以必須遵從『開放社交外掛』設定規範,設定相關功能後才會生效

所以相關的 og: 都必須要設定

 

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#">
 <meta property="fb:app_id" content="302184056577324" /> 
 <meta property="og:type" content="website" /> 
 <meta property="og:url" content="&#x5c07;&#x4f60;&#x81ea;&#x5df1;&#x7684;&#x7db2;&#x5740;&#x7f6e;&#x5165;&#x5230;&#x9019;&#x88cf;&#x7684;&#x7269;&#x4ef6;" /> 
 <meta property="og:title" content="Sample Website" /> 
 <meta property="og:image" content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" /> 

設定可以參考 https://developers.facebook.com/docs/reference/opengraph

完整範例
https://codepen.io/lamb-mei/pen/LzYrMw

需要自行更換appID 相關描述

 

測試工具

開放社交關係圖物件偵錯工具  https://developers.facebook.com/tools/debug/og/object/
分享偵錯工具 https://developers.facebook.com/tools/debug/sharing/

note:兩個檢測工具都必須沒有

開放社交關係圖動態
https://developers.facebook.com/docs/reference/opengraph/object-type/website/

 

檢驗都沒問題即可在留言工具

https://developers.facebook.com/tools/comments

看到先關的資料

 

 

Comments

comments

您可能也會喜歡…

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料