# Facebook One Box Error

**URL:** https://meta.discourse.org/t/facebook-one-box-error/173008
**Category:** Bug
**Created:** [December 11, 2020, 4:27pm UTC](https://meta.discourse.org/t/facebook-one-box-error/173008 "2020-12-11T16:27:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![PoojaPatel](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PoojaPatel](https://meta.discourse.org/u/PoojaPatel)
#### Post date: [December 11, 2020, 4:27pm UTC](https://meta.discourse.org/t/facebook-one-box-error/173008/1 "2020-12-11T16:27:37Z")

</div>

Facebook One Box Error on Latest 2.7.0.beta1 version.

> ErrorUtils caught an error:
> 
> Failed to set the ‘domain’ property on ‘Document’: Assignment is forbidden for sandboxed iframes. [Caught in: Module “lowerDomain”]
> 
> Subsequent non-fatal errors won’t be logged; see `https://fburl.com/debugjs`.

Same error show when I do F12 on following post.

> [@Video embeds from facebook.com and other sites fail](https://meta.discourse.org/t/video-embeds-from-facebook-com-and-other-sites-fail/149366/27):
>
> Facebook video oneboxing now works via: Demo: [https://www.facebook.com/7976226799/videos/657169254840569/](https://www.facebook.com/7976226799/videos/657169254840569/)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [December 11, 2020, 8:31pm UTC](https://meta.discourse.org/t/facebook-one-box-error/173008/2 "2020-12-11T20:31:50Z")

</div>

Can you provide an example?

---

<div class="post-metadata">

### Author: ![PoojaPatel](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@PoojaPatel](https://meta.discourse.org/u/PoojaPatel)
#### Post date: [December 12, 2020, 11:27am UTC](https://meta.discourse.org/t/facebook-one-box-error/173008/3 "2020-12-12T11:27:29Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/a/0/a00084ed993ef7407c1d31bcacd8db2e56731a10.jpeg)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 1, 2021, 7:52am UTC](https://meta.discourse.org/t/facebook-one-box-error/173008/6 "2021-03-01T07:52:28Z")

</div>

> [@PoojaPatel](#):
>
> Failed to set the ‘domain’ property on ‘Document’: Assignment is forbidden for sandboxed iframes. [Caught in: Module “lowerDomain”]

This error is coming from Facebook API because we are loading the video in a [sandbox iframe](https://www.w3schools.com/tags/att_iframe_sandbox.asp) for security reasons.

As I can [see here](https://meta.discourse.org/t/video-embeds-from-facebook-com-and-other-sites-fail/149366/27) the video works fine even with the error from Facebook so it’s not blocking the feature? The alternate here would be to not onebox the video at all which seems even worse.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 3, 2021, 2:30am UTC](https://meta.discourse.org/t/facebook-one-box-error/173008/7 "2021-03-03T02:30:30Z")

</div>

This topic was automatically closed after 39 hours. New replies are no longer allowed.
