-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Previews for Embeddable Facebook Content are not displayed #8360
Comments
Related #8361 (comment) I think there's some difference between how Facebook posts are embedded within the Classic Editor vs. Gutenberg, which makes them not work in Gutenberg. |
Thank you for your answer Daniel I'm not sure there is a difference between the Classic Editor and Gutenberg about Facebook oEmbed insertion. Plus, it is really stange that other services work and Facebook doesn't 😕 I hope Facebook oEmbeds will work when Gutenberg will be inserted in WordPress core. |
I took the time to look into Can you explain to me why the embeds are sandboxed? They are not in the classic editor and in front-end. |
No worries! Glad you were able to come to some understanding.
I don't know off the top of my head, to be honest. It may be related to admin authentication cookies; the Classic Editor TinyMCE instance exists within an |
Removing the |
Reported in #10653779-hc with follow up at #1913555-zen |
@danielbachhuber Just to confirm, the preview is a no-no? |
@renatonascalves I don't recall exactly. If I were to look into this again, I'd first see if it was possible to cleanly sandbox the embed within an |
This can be closed since facebook is no longer supported in the embed block because of their api changes. 87c4dc5 |
Describe the bug
When I try to use the Facebook Embed Block, the preview of a valid embeddable content is not displayed.
Plus, when I try the same thing with the classic editor, it works very well.
Maybe this issue is relative to the #5530 one.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Gutenberg should display a preview of the embedable Facebook content or at least its HTML fallback.
E.g.:
If for some security issues, you don't want to embed external scripts into Embeds Block Previews, you are able to add the
omitscript
parameter to the Facebook API endpoint: https://developers.facebook.com/docs/plugins/oembed-endpoints?locale=en_GB#parametersScreenshots
Additional note
/oembed/1.0/proxy
is valid;The text was updated successfully, but these errors were encountered: