The new "Share This" module is available

brian
@brian
11 years ago
10,148 posts
I've just added a new module to the Marketplace - "Share This" that adds a Share This section to item detail pages:

- Easily share pages and posts to dozens of social networks.

- Includes a specially designed flash MP3 player for sharing audio to Facebook. The player has a background that can be customized with your own site logo, and if clicked on brings the visitor to the audio detail page.

- Requires a free ShareThis account: http://www.sharethis.com/

You can see it in action here on Jamroom.net - i.e. in the ShareThis detail page:

https://www.jamroom.net/the-jamroom-network/networkmarket/105/share-this

The module is available right now to all JR subscribers, and will be generally available in 14 days. If you're not a subscriber and would like to get early access to Jamroom modules, subscriptions start at only $29 per year:

https://www.jamroom.net/subscribe

I hope you like the new module!

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 02/03/14 04:08:14AM
blindmime
@blindmime
11 years ago
772 posts
Very cool. I was just thinking this morning it would nice to have this.









Actually, that's sorta scary!
blindmime
@blindmime
11 years ago
772 posts
It's changing my link to https.
brian
@brian
11 years ago
10,148 posts
blindmime:
It's changing my link to https.

I'm not sure what you mean - can you clarify?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
I click a share button for http://mysite.com/artist/audio/1/song and it changes the link to https://mysite.com/artist/audio/1/song so the link is bad.
brian
@brian
11 years ago
10,148 posts
Is that something you can control in the ShareThis control panel? It's not something that is set by Jamroom.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
One thing that's important to know - to share to Facebook you will need to be on SSL - all "embeds" on Facebook must be SSL.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
I set up a ShareThis account so I could use the module; this is the first I've heard of ShareThis. The module actually does hard code the SSL links via the open graph template on jamroom.

I suggest disabling the embedded player for those not on SSL and sharing a simple non-secure link to the page. The module pulls in the option for the hovering bars, but those don't work on SSL but the module still tries to embed the flash player so it doesn't work.

I've altered some of the things myself and got it working for everything but facebook. Still wants to pull in the flash player there.
updated by @blindmime: 12/11/13 05:34:48AM
brian
@brian
11 years ago
10,148 posts
Yeah that's because it sees all the og: (Open Graph) tags that are added in the HTML by the module.

I will get this updated to so the player og tags won't be added in if it is not on SSL.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Version 1.0.1 is now in the marketplace with a new Quota Config option to enable/disable the Facebook player:

https://www.jamroom.net/the-jamroom-network/networkmarket/105/share-this/expanded_changelog=1

It also has a note about requiring SSL in the Help drop down.

Let me know if you see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Still doesn't work. Something besides the open graph tags is doing something. Earlier, before the update, I tried simply deleting them by making the open graph template blank and it still embeds the flash player on facebook. My page doesn't have open graph tags, yet the element on facebook has this:

<a class="_1xv _1xy _1xx" ajaxify="/ajax/flash/expand_inline.php?...

updated by @blindmime: 12/11/13 10:21:11AM
brian
@brian
11 years ago
10,148 posts
Weird - I've not seen that before. Without the OG tags, it should just pick the image from the page, embed that and then be "clickable" back to the page.

What do you see when you try to embed?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Not sure if you can see my timeline. https://www.facebook.com/bfbaker It's the post that says "test".
brian
@brian
11 years ago
10,148 posts
Yeah so it looks like the page you are linking to does not have the og: tags in it - does it work if you have the open graph tags in it?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
No. I'm thinking the tags might need to be re-written for non-SSL, but I'm still wondering where the flash code is coming from when nothing is there. I'm not familiar enough with modules in general or ShareThis in particular to have gotten much further. I do see some conditional statements in the include.php which check for audio and do something. I tried escaping them entirely and also adding to them so it part behaved as if it was not audio, but still got the same thing.
chorton581
@chorton581
11 years ago
139 posts
works great. Brian any idea on how to migrate the http site to the https: on digital ocean? I installed the cert but it just shows a start page since it is a separate site. That is pretty much all the instructions that digital ocean gave me. I do not want to buy a cert until i was sure this module worked. It works on non ssl for now.
blindmime
@blindmime
11 years ago
772 posts
Hmm. Seems I was having issues with just that one page. Flushed everything, reloaded the module, integrity check, caches. Still no go. Check other audio pages and they worked. So I deleted that song and added it again. Now it works.
brian
@brian
11 years ago
10,148 posts
blindmime:
Hmm. Seems I was having issues with just that one page. Flushed everything, reloaded the module, integrity check, caches. Still no go. Check other audio pages and they worked. So I deleted that song and added it again. Now it works.

In testing I also found that Facebook would cache pages, so that very well could be what you were seeing - the way I tested was that each time I would just create a new song and share it - that way I knew it was "new" and not cached by FB.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
chorton581:
works great. Brian any idea on how to migrate the http site to the https: on digital ocean? I installed the cert but it just shows a start page since it is a separate site.

I'll get my DigitalOcean guide updated today with a section on setting up the SSL server that should walk you through it.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
I've got my guide updated with a new section on setting up SSL:

https://www.jamroom.net/brian/documentation/guides/1500/optional-configuring-ssl-for-your-domain

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
This tool is your best friend with Facebook since it will debug and recache your pages.

https://developers.facebook.com/tools/debug/
brian
@brian
11 years ago
10,148 posts
Dazed:
This tool is your best friend with Facebook since it will debug and recache your pages.

https://developers.facebook.com/tools/debug/

Yeah this is a big help - thanks for posting the link Dazed!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
i get the player loaded on Facebook and it will return now to the ssl page on the site.
It does not play though on Facebook. It looks like it should be playing but it does not
brian
@brian
11 years ago
10,148 posts
When you load the URL for your page here:

https://developers.facebook.com/tools/debug/

Do you see any issues?

What browser are you testing with?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fversionist.net%2Fali%2Faudio%2F14%2Flion-of-joppa-soundsystem-dread-dub

No errors that i can tell. Also IE 11, safari, chrome. None will play. Uninstalled and re installed module after i setup ssl too.
michael
@michael
11 years ago
7,717 posts
I'm not sure if it should play or not independent of being embeded, but the URL from that facebook page:
https://versionist.net/modules/jrShareThis/contrib/flash/multi.swf?width=400&height=120&autoplay=1&title=lion+of+joppa+soundsystem+-+dread+dub&mp3=https%3A%2F%2Fversionist.net%2Faudio%2Fstream%2Faudio_file%2F14%2Ffile.mp3&skin=https%3A%2F%2Fversionist.net%2Fmodules%2FjrShareThis%2Fimg%2FjrAudio_facebook_player_skin.jpg

Causes the player to show, but nothing to play. just reads "Liste vide".

Makes me wonder if its the video upload issue possibly.
chorton581
@chorton581
11 years ago
139 posts
i tried many things. Uninstalled module, reinstalled. tried 3 different browsers and nothing seems to get it to work.
The player shows on Facebook but just will not start the play process.

Not sure what else to try
brian
@brian
11 years ago
10,148 posts
This could be a return of the big that Facebook "fixed" just before the release of this module. During development, I saw the exact same issue you are seeing now (it would show but would not play). It was a bug on Facebook's end that they fixed (and is why we delayed releasing the module for a couple weeks). I'll see if I see the issue here as well.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
any luck on this yet?
brian
@brian
11 years ago
10,148 posts
chorton581:
any luck on this yet?

There's nothing we can do on this end - it's a Facebook issue and until they fix it, it's not going to work.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Just an update that I still see it not working as well when testing on my dev site (which it worked on previously). I've not made any changes to the ShareThis module, but I'm going to go through it all again to make sure there's nothing I'm overlooking.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Okay - it's working for me - it looks like Facebook has changed the referring domain from which they are loading the media - add this domain to your Core -> Global Config -> Allowed Domains config:

fbsbx.com

And let me know if that works.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
nothing. Tried all 3 browsers. The jrAudio_facebook_player_skin.jp image does not even show up now. It puts the player up there but when i hit play it just goes white.
brian
@brian
11 years ago
10,148 posts
chorton581:
nothing. Tried all 3 browsers. The jrAudio_facebook_player_skin.jp image does not even show up now. It puts the player up there but when i hit play it just goes white.

Can you post a URL to the page you are sharing? I'll check it out from this end.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
It's working here for me:

https://www.facebook.com/jamroom


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
i do not see anything on your facebook page.
brian
@brian
11 years ago
10,148 posts
chorton581:
i do not see anything on your facebook page.

Sorry - I had it set for "only me" - just set it to public.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
works like a charm. Thanks. I somehow think this module is going to be a pain in the a$$.
Any thoughts of doing a mix cloud mod like the sound cloud mod?
paul
@paul
11 years ago
4,326 posts
chorton581:
works like a charm. Thanks. I somehow think this module is going to be a pain in the a$$.
Any thoughts of doing a mix cloud mod like the sound cloud mod?

Not in the immediate future -
http://archive.jamroom.net/phpBB2/viewtopic.php?t=42236&highlight=mixcloud


--
Paul Asher - JR Developer and System Import Specialist
chorton581
@chorton581
11 years ago
139 posts
Wonder what the need for an api is if they do not include the song streams.
oh well
brian
@brian
11 years ago
10,148 posts
Looks like they say this:

Quote:
Firstly, we need to know what has been listened to so that we can report usage, pay royalties and provide features such as "Suggested Cloudcasts" on the dashboard. Secondly, Mixcloud needs to pay the bills! We can't give away the audio for free outside of mixcloud.com simply because it costs us to host and stream the files.



--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags