#facebook #embed #embedfacebook
Facebook oEmbed API reference - gist.github.co...
How to Embed Facebook Post, Pages and Videos to a Website through oEmbed API
Facebook oEmbed endpoints allow you to get embed HTML and basic metadata for pages, posts, and videos in order to display them in another website or app.
The legacy one deprecated now not required the Access token - / oembed-legacy
The new Facebook oEmbed API endpoints requires Access token to fetch the data even the public posts and videos - / oembed
Common Use cases:
Rendering Facebook pages, posts, and videos in messaging apps.
Embedding Facebook pages, posts, and videos in websites and blogs.
Rendering Facebook pages, posts, and videos in a content management system.
Prerequisites:
a Facebook Developer account, which you can create at developers.facebook.com
a registered Facebook app
the oEmbed Product added to the app
an Access Token
The Facebook app must be in Live Mode
Endpoints
GET /oembed_page?url={url}&access_token={access-token} - Get a Facebook page's embed HTML and basic metadata.
GET /oembed_post?url={url}&access_token={access-token} - Get a Facebook post's embed HTML and basic metadata.
GET /oembed_video?url={url}&access_token={access-token} - Get a Facebook video's embed HTML and basic metadata.
Parameters & Attributes:
OEmbed Page reference - / oembed-page
OEmbed Post reference - / oembed-post
OEmbed Video reference - / oembed-video
The Facebook oEmbed endpoints require either an App Access Token (recommended) or Client Access Token.
App Access Tokens:
Access from back end server, access_token=5678
App Access Tokens should never be used client-side - should always be kept secure and stored on your server
App Token Rate Limits allow for up to 5 million requests per day
Client Access Tokens:
access the oEmbed endpoint from a user agent such as a mobile device or web browser
must be combined with your App ID, access_token=1234|5678
Client Token Rate Limits are significantly lower than App Token Rate Limits, not revealed the actual limit, change depending on your app activity.
To get a Client Access Token, sign into your App Dashboard and navigate to Settings -- Advanced -- Security -- Client Token.
Endpoints & Schemas - oembed.com/pro...
4 окт 2024