solved Sharing songs on Facebook problem

Eddy
Eddy
@eddy
9 years ago
479 posts
When I share a song on Facebook, it shows the player, but when I click on the play button, the player goes blank, no audio as well, anyone know why?
updated by @eddy: 02/09/16 08:54:38AM
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
Is your site behind ssl?
michael
@michael
9 years ago
7,715 posts
Your server will need to be running on SSL to be able to share the player to facebook.

There are some details on setting that up here:
https://www.jamroom.net/brian/documentation/guides/1500/optional-configuring-ssl-for-your-domain

and quite a bit of discussion on facebook players here if its useful at all:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/17813/playlists-and-players-in-timeline-plus-facebook-sharing/search_string=facebook
Eddy
Eddy
@eddy
9 years ago
479 posts
There is no way to share just an image of the player? So when people click on it it takes them to the song page? I have some sites in which if I'm not using ssl, it just displays an image, title and description on Facebook.

Thanks

Eddy
brian
@brian
9 years ago
10,148 posts
You must have SSL to share any media to Facebook (image, song, etc.) - this is a requirement by Facebook.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Eddy
Eddy
@eddy
9 years ago
479 posts
Than it is completely useless to share anything on facebook unless one has ssl installed? Attached is a gif of what it looks like when I share a video on Facebook, I do not have ssl running right now and have other sites as well that don't have ssl instaleed and I can share images and content like this example shown.

I'm not very web savy, but I am very sure that there has got to be a way just to show the default image for a song instead of the actual player, especially if a site doesn't have a ssl certificate installed.

It does not need to have the play button like the image attached from one of my sites, but some sites even use image manipulation to add some sort of effect to the shared FB image.

Eddy
1.jpg
1.jpg  •  33KB


updated by @eddy: 10/27/15 07:15:01AM
Eddy
Eddy
@eddy
9 years ago
479 posts
That example gif posted above, uses a code similar to this one in the header:

{if $facebook_image_src != ''}
    <link rel="image_src" href="{$facebook_image_src}" />
    <meta property="og:title" content="{$meta_title}" />
    <meta property="og:url" content="{$video_data.video_href}" />
    <meta property="og:description" content="{$meta_description}" />
    <meta property="og:image" content="{$facebook_image_src}" />
    {if $video_data.source_id == 1}
        <link rel="video_src" href="{$smarty.const._URL2}/videos.php?vid={$video_data.uniq_id}"/>
        <meta property="og:video:url" content="{$smarty.const._URL2}/videos.php?vid={$video_data.uniq_id}" />
    {/if}
{/if}

I do have it modified on that site so it actually shows the play button on it, but this is the default code that came with the script.

Eddy
updated by @eddy: 10/27/15 07:35:30AM
brian
@brian
9 years ago
10,148 posts
The audio player will definitely not show if you are not using SSL - images might. However, the ShareThis module (I believe) rewrites the URL to SSL so it shares properly.

Do you have a link to the page you're sharing?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Eddy
Eddy
@eddy
9 years ago
479 posts
On my JR site or that site from the image I posted?
brian
@brian
9 years ago
10,148 posts
Eddy:
On my JR site or that site from the image I posted?

On your JR site.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,148 posts
The OG tags are all setup correctly on that page, so if you're not seeing an image it's something on FB's end.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Eddy
Eddy
@eddy
9 years ago
479 posts
Ok, thanks, I have since installed a SSL cert.

Eddy

Tags