Facebook inline video sharing with Ruby on Rails

女生的网名这么多〃 提交于 2019-12-25 01:03:59

问题


I've been looking around for a bit but I can't seem to find any information on how to achieve what I want.

Basically I have a page which displays a gif and offers the possibility to share it on facebook. I tried to make this work with the gif file directly but after a lot of trial and a lot of errors I gave up on this idea and instead, decided I might as well make it so the page would appear as a video on facebook since I already have a 15second long video generated from the gif for instagram.

The problem is when I do this I keep ending up with this result

but I'm trying to do an inline video sharing (like youtube does)

I think I need a shockwave player but I have no idea where to begin, my video file being an mp4 and all.

I can't find any information on how to this using heroku + ruby on rails

any links would be appreciated.

here are the metatags I used:

<meta property="og:url" content="url_of_the_page">
<meta property="og:title" content="event_name">
<meta property="og:description" content="event_place_and_time">
<meta property="og:type" content="video.other">
<meta property="og:image" content="secure_url_of_remote_thumbnail">
<meta property="og:video" content="secure_url_of_remote_mp4">
<meta property="og:video:secure_url" content="secure_url_of_remote_mp4">
<meta property="og:video:type" content="video/mp4">
<meta property="og:video:width" content="960">
<meta property="og:video:height" content="1280">
<meta property="og:site_name" content="site_name">

Thanks for any help

Facebook Open Graph Debugger Tool For The Page

来源:https://stackoverflow.com/questions/48565722/facebook-inline-video-sharing-with-ruby-on-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!