• Resolved Aleksandar

    (@aivanov12)


    Hello dear team. I am asking for your help.

    I haven’t been able to embed posts (videos) from Facebook and Twitter for a few days now. I have disabled plugins and themes but the problem is not resolved. I am asking for your help.

    My site is locked, but I am sending you a specific sample unlocked page with embedded videos.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • threadi

    (@threadi)

    You are apparently trying to embed a video from Facebook via iframe – but the code of the iframe is not correct. How did you get this code?

    And on twitter you try to embed a tweet that doesn’t exist.

    Thread Starter Aleksandar

    (@aivanov12)

    Thank you very much for your reply.

    It is possible that the Twitter video was immediately deleted by its owner. Now I embedded another one from Twitter and it works. But the facebook problem persists from any video.

    For example, I’ll embed two Facebook posts. One text and one video:

    https://www.facebook.com/aivanov.12/posts/643601487205442

    https://www.facebook.com/watch?v=1184305742433309

    See the result.

    • This reply was modified 2 years ago by Aleksandar.
    threadi

    (@threadi)

    You have inserted the following iframe code:

    <iframe src="https://www.facebook.com/plugins/video.php?height=476&target="_blank" href=https%3A%2F%2Fwww.facebook. com%2FTspiceskitchen%2Fvideos%2F1184305742433309%2F&show_text=true&width=267&t=0" width="267" height="591" style="border:none;overflow: hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>

    This is incorrect. The correct code is the one Facebook provides for the videos:

    <iframe src="https://www.facebook.com/plugins/video.php?height=476&href=https%3A%2F%2Fwww.facebook.com%2FTspiceskitchen%2Fvideos%2F1184305742433309%2F&show_text=false&width=267&t=0" width="267" height="476" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" allowFullScreen="true"></iframe>

    So how did you insert the code above? Did you use the HTML block for it?

    Thread Starter Aleksandar

    (@aivanov12)

    Please see the code I pasted. I got it from Facebook.

    https://i.ibb.co/s3Rv1Z6/cats.jpg

    <iframe src="https://www.facebook.com/plugins/video.php?height=476&href=https%3A%2F%2Fwww.facebook.com%2FTspiceskitchen%2Fvideos%2F1184305742433309%2F&show_text=true&width=267&t=0" width="267" height="591" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>

    threadi

    (@threadi)

    Ok, looks right. I have just pasted the code in my own installation and it is saved correctly. Therefore, the assumption would be that a plugin used by you manipulates the inserted HTML code in some form. Deactivate all plugins to verify this.

    Thread Starter Aleksandar

    (@aivanov12)

    I have disabled all plugins and themes. no result. I am very sad.

    threadi

    (@threadi)

    After deactivating the plugins, did you resave the text or just look at the already saved one? I would recommend to save it again after deactivating the plugins, because the saving is already faulty.

    Thread Starter Aleksandar

    (@aivanov12)

    The problem is caused by the Code Snippets plugin. After I disable it, the problem is fixed.

    /plugins/code-snippets/

    Thank you for your help!

    • This reply was modified 2 years ago by Aleksandar.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Embedding from Facebook and Twitter’ is closed to new replies.