Topic-icon Share a Video from my Website

Active Subscriptions:

None
6 years 2 months ago #63502 by earthwatch
Hi, I wanted to be able to share a video from my website and have the share buttons below it. I currently have added the share option for the page and put it under the video but the share options are more for the page rather than the video. I was hoping that I could add the following tags below that Facebook recommend. Is this possible through JFBC? And can I have them as well as the standard share og tags?

Thanks a lot!
Paul

My Page: staging.earthwatchuk.co.uk/company/peter-watson
Joomla 3.8
Latest Version On JFB

<head prefix="og: ogp.me/ns# fb: ogp.me/ns/fb# video: ogp.me/ns/video#">
<meta property="fb:app_id" content="302184056577324" />
<meta property="og:type" content="video.other" />
<meta property="og:url" content="Put your own URL to the object here" />
<meta property="og:title" content="Sample Video" />
<meta property="og:image" content="s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" />
The topic has been locked.
Support Specialist
6 years 2 months ago #63506 by mel
Replied by mel on topic Share a Video from my Website
To add specific Open Graph tags via JFBConnect, you would use the following format

{SCOpenGraph og:type=video.other}
{SCOpenGraph og:url=FULL/PATH/TO/VIDEO/URL}
{SCOpenGraph og:title=Sample Video Title}
{SCOpenGraph og:image=https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png}

* Ignore app_id. JFBConnect sets this automatically

After setting the Open Graph tags for the page to use type of video.other, the click of the JFBCShare button should share the video. Facebook wants you to share a page and they will generate the appropriate video preview, etc. To add the button, it should just be in with 1) another easytag {JFBCShare} or {JFBCShare href=FULL/PATH} or 2)the SCSocialWidget module

If you scroll to the bottom of the FB video tags documentation , there are additional tags you can set for the size of the video and other options.

Also, as you update the Open Graph tags on the page, please use the Facebook Sharing Debugger to re-scrape your pages to get the changes to take effect.

-Melissa
The topic has been locked.