FacebookPost
The component for adding a Facebook post.
Declaration
object FacebookPostProperties
| Name | Type | Description |
|---|---|---|
role Required | string | Always |
URL Required | uri | The URL of the Facebook post you want to embed. URLs for Facebook posts must include the identifier for the post. The following is an example of a Facebook post URL:
Apple News supports the following URL formats for Facebook posts:
|
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation you apply to the component. Use the |
behavior | (Behavior | string("none")) | An object that defines behavior for a component, like Parallax or Springy. Use the |
conditional | (ConditionalComponent | [ConditionalComponent]) | An instance or array of component properties that you can apply conditionally, and the conditions that cause Apple News Format to apply them. |
hidden | boolean | A Boolean value that determines whether the component is hidden. |
identifier | string | An optional unique identifier for this component. If you use |
layout | (ComponentLayout | string) | An inline If you don’t define |
style | (ComponentStyle | string | string("none")) | An inline Use the |
Mentioned in
Discussion
Use the facebook_post object to include a facebook post in an article by specifying a URL of a publicly available Facebook post.
Example
{
"components": [
{
"role": "title",
"text": "Apple Music"
},
{
"role": "body",
"text": "Lose yourself in 50 million songs."
},
{
"role": "heading2",
"text": "Facebook"
},
{
"role": "facebook_post",
"URL": "https://www.facebook.com/applemusic/posts/2678727315476302"
}
]
}