Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    The Stackexchange post you linked to includes an answer that should help you:
    http://wordpress.stackexchange.com/a/4470/27574

    You could include that code in a small plugin.

    Jetpack itself doesn’t look for videos in the posts, but I took note of the suggestion. We’ll consider adding the option in a future Jetpack release.

    Thread Starter gep13

    (@gep13)

    Hey,

    That is great news, I think it would be a very useful addition.

    In terms of the suggestion for using a plugin, how would that “look”. Never actually created my own plugin. Are you saying that I could create a plugin that is “activated” for each post, and then within each post, look to see if there is an embedded YouTube link. If that link is found, then add the addition meta tags to the page, so that Facebook can pick them up?

    Any tips on where I could get started creating this?

    Thanks

    Gary

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I haven’t actually tested the code in the Stackexchange post, but to transform that code into a plugin you can follow the instructions here:
    https://codex.wordpress.org/Writing_a_Plugin

    You will basically need to copy the code from Stackexchange into a new PHP file, and add a file header to that file to give a name to your plugin. Once it’s done you can just drop the plugin to your plugins folder.

    Thread Starter gep13

    (@gep13)

    Perfect, thanks for the info!

    Gary

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sharing video on facebook from wordpress’ is closed to new replies.