我目前正在嘗試將Yammer Open Graph feed嵌入SharePoint頁面。我使用了以下配置:如何防止設置所需的收件人並使Open Graph對象顯示?
yam.connect.embedFeed({ container: "#embedded-feed" , feedType: "open-graph" , feedId: "" , config: { defaultGroupId: 27862 // recipient is required so I specified a dedicated group for article feeds //, use _ sso: true , header: false , footer: false , showOpenGraphPreview: false , defaultToCanonical: false , hideNetworkName: true , promptText: "What do you think of this article?" } , objectProperties: { url: "" // <empty> takes the url from the current page , type: "page" } });
(飼料配置可以通過https://www.yammer.com/widget/configure產生)
看來,收件人是必需的,所以我不得不創建一個虛擬組,並指定該虛擬組-id所有消息都在登陸。我不想用開放圖形對象提要來關注一些常規組。這能以更好的方式解決嗎?
此外,至少第一條消息包含附加到它的Open Graph對象。這看起來不太好,而且完全沒有必要,因爲Feed已經完全嵌入到對象中。可以防止這種附件?此外,只要您將計算的對象url指定到objectProperties
中,該對象就會附加到全部消息。這完全過分了。理想情況下,Open Graph對象url僅用於標識特定的對象提要。
參考Facebook的API,其中這兩個要求得到滿足:https://developers.facebook.com/docs/plugins/comments