Open Graph for video
-
Hey George!
I found the open graph for video didn’t work perfectly.
The video isn’t playable streamly in Facebook. and I tried to debug url, it happen because there is noog:video:secure_url
.And Player card for twitter didn’t rendered.
How to fix that?
-
Hello Noorhackim,
Thank you for your feedback about facebook, but I need more information. Are you talking about local video attachments or embedded videos, such as youtube, vimeo etc?
You are right about
og:video:secure_url
. This will be fixed in 2.7.0.I just tried twitter player cards for local videos and for youtube and it is rendered OK. Player card for local videos will not render, if your web site is not accessible over HTTPS.
George
Please note that
og:video:secure_url
for local media can only be added if the web site is accessible over HTTPS.Unfortunately the plugin cannot detect the type of post. The type of card is controlled by the post format which is user-defined. For player twitter card the post format has to be either audio or video. If your theme does not support post formats, it is very easy to do so. Please let me know so I can help with that.
I think my theme didn’t support post format!
there is no post format option in post editor.
OK, here you go:
Add something like the following in the
functions.php
file of the theme, inside theTHEME_NAME_setup()
function:add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) );
Then in the post editing screen there will be a section where the post format can be selected.
Please, see more info here: http://codex.wordpress.org/Post_Formats#Adding_Theme_Support
Hope this helps,
GeorgeThat’s work!
Thanks for help.
Also, setting the post format to image, the generated twitter card is the
summary_large_image
one. But in a future version I’ll add an option to make summary_large_image the default one, but it might take 1-2 weeks.Hello again George!
I think there are few things that should be fixed if using og video in VIDEO POST FORMAT!
first replace this
article:published_time
with thisvideo:release_date
second replace this
article:tag
with thisvideo:tag
third remove or replace this
article:modified_time
with thisog:updated_time
and last remove this
article:author
,article:publisher
,article:section
Hello Noorhackim and thanks for your suggestions!
2.7.0 will have updated Opengraph metadata. Until recently only the ‘article’ og:type was supported by the plugin, but recently og:type=video.other is supported as well. All of the above will be implemented.
Thanks!
Just released 2.7.0. Thanks for all your feedback!
secure_url is set for embedded media. not yet for local media.
Your suggestions about the video object have been implemented. Please let me know if works as expected.
Still had issue, not playable streamly on youtube,
I think that because
og:video
is generated as HTTPS, It sould be HTTP I guess.I found all websites that have streamly playable content on facebook are using HTTP for that tag. HTTPS only for
og:video:secure_url
. such as buzzfeed and even youtube itself.But that just I assume, I didn’t tried it yet.
I didn’t know how to force url HTTPS to HTTP or else
I don’t think this is the case. I suspect that facebook needs a different url for the video. Problem is that twitter player card don’t seem to work with other url. I’ll do some testing later and see what I can do. This can definitely be fixed.
Also I noticed that the video page on buzzfeed uses the og:type article. Can you try by setting the post format to standard and check sharing on facebook?
The problem was the youtube player URL. This is now fixed in 2.7.1. Both Facebook and Twitter should stream youtube videos just fine.
These changes are final for now.
Thanks for your feedback!
- The topic ‘Open Graph for video’ is closed to new replies.