Skip to content

Refused to display 'https://m.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'. #43

@johnvanhulsen

Description

@johnvanhulsen

Bug Report

Current Behavior
Since a few days m.facebook.com cannot be embed anymore. The X-frame option is setted on Facebook's level to deny. Viewing an embed on mobile results in a white screen.

Steps to Reproduce

  1. Go to your forum with this plugin
  2. Click on reply or new topic
  3. Insert https://www.facebook.com/themeparkmagic1/posts/1027475545840536
  4. Post comment and check it on mobile (or use the device emulation mode in Crome / Edge)

Expected Behavior
On mobile, the facebook element has to load.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • Flarum version: 1.8.5
  • Extension version: 1.0.3
  • Website URL: https://forum.pretpark.club
  • Webserver: apache
  • Hosting environment: dedicated cluster
  • PHP version: 8.1.29
  • Browser: Mobile devices

Possible solution(s)

  • Load regular facebook domain. Not m.facebook.com
  • Don't embed facebook, or give the option to not load facebook.com as an embed.

Additional Context
Direct URL of embed output: https://s9e.github.io/iframe/2/facebook.min.html#themeparkmagic1/posts/1027475545840536

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions