Use DiscussionForumPostingJsonLd for forum and social media posts
mainThe DiscussionForumPostingJsonLd component is used for forum-style sites where users share perspectives. It supports nested comments for threaded discussions and interaction statistics for engagement metrics.
Interaction Types
Supported values for interactionStatistic.interactionType:
https://schema.org/LikeAction(Likes/upvotes)https://schema.org/DislikeAction(Dislikes/downvotes)https://schema.org/ViewAction(View count)https://schema.org/CommentActionorhttps://schema.org/ReplyAction(Comment count)https://schema.org/ShareAction(Share count)
Best Practices
- Nested comments: Use the
commentarray to represent threaded discussions. - ISO 8601 dates: Always use proper date formatting with timezone information.
- Interaction statistics: Add engagement metrics to help search engines understand popularity.
- Note: For Q&A formats, use Q&A structured data instead.
<DiscussionForumPostingJsonLd
headline="Very Popular Thread"
author={{
name: "Katie Pope",
url: "https://example.com/user/katie-pope",
}}
datePublished="2024-01-01T08:00:00+00:00"
text="Look at how cool this concert was!"
comment={[
{
text: "This should not be this popular",
author: "Commenter One",
datePublished: "2024-01-01T09:00:00+00:00",
comment: [
{
text: "Yes it should",
author: "Commenter Two",
datePublished: "2024-01-01T09:30:00+00:00",
},
],
},
]}
/>