Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2 3 4 5   Go Down

Author Topic: Facebook sharer for cpg1.5.x  (Read 76206 times)

0 Members and 1 Guest are viewing this topic.

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Facebook sharer for cpg1.5.x
« on: June 27, 2010, 02:43:04 pm »

I have ported gtgillis's Facebook cpg 1.4.x plugin to cpg1.5.x.

This plugin adds a "Share on Facebook" button under the displayed image when javascript is enabled. If javascript isn't enabled, then a simple text link is shown. This plugin doesn't upload anything to your Facebook profile, it just creates a link with a button to Facebook's url sharer. However, there should be an option (or at least there was) in Facebook to choose a thumbnail and to write a description/comment for the shared content.

Please be advised that Facebook needs access to the thumbnail of the media being shared. I haven't checked if Facebook hotlinks the thumbnail or downloads that to its server. Using a hotlink protection in your site may prevent Facebook from accessing the thumbnail.

Credits:
This plugin is originally written by gtgillis and adapted by jeepguy_1980.
« Last Edit: April 10, 2012, 12:34:50 am by papukaija »
Logged

Jinnie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Facebook sharer for cpg1.5.x
« Reply #1 on: July 02, 2010, 07:17:18 pm »

Just a general question. Is it possible for this plugin to show the image being shared as a thumbnail when it's posted on the user's Facebook wall?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Facebook sharer for cpg1.5.x
« Reply #2 on: July 03, 2010, 08:28:38 am »

@Jinnie: that's not what this plugin does

@papukaija: maybe you could come up with a detailed description of what this plugin does within this very thread.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #3 on: July 04, 2010, 02:07:33 pm »

@Joachim: I've updated this thread's initial post.

@Jinnie: Your question should now be answered in this thread's initial post. If not, post a link to your gallery as requested by board rules.
Logged

Joro711

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Facebook sharer for cpg1.5.x
« Reply #4 on: July 17, 2010, 05:05:09 pm »

Hi.Possible this plugin show thumbnail on Facebook page?Thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Facebook sharer for cpg1.5.x
« Reply #5 on: July 19, 2010, 07:29:51 am »

That's not what this plugin does. It does something completely different. You have failed to do as suggested per board rules anyway, so why should someone look into your issues? Stay out of this thread!
Logged

vlkoun

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Facebook sharer for cpg1.5.x
« Reply #6 on: July 28, 2010, 05:41:35 pm »

Yes I KNOW that this plugin doesn't add a thumbnail to a facebook link.
But is there anyone who can add this function?
Thanks
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #7 on: July 28, 2010, 05:59:20 pm »

However, there should be an option (or at least there was) in Facebook to choose a thumbnail and to write a description/comment for the shared content.

vlkoun: That's all I can tell you. I won't add thubmnail support to this plugin. In addition, you haven't posted a link to your gallery.
Logged

catanuba23

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Facebook sharer for cpg1.5.x
« Reply #8 on: August 08, 2010, 09:02:10 pm »

Hello all, I am having a problem with the 1.5.x version of the FB Sharer that was covered in 1.4.x. I am getting the 404 error, page cannot be displayed. I read the 1.4.x post but couldn't figure out what was going on with the 1.5.x version. My gallery is in the coppermine directory.

Here is the link: http://freegameshots.com/gallery_cpm/

I believe if there is a way to get the album id in the link, it would work fine.

Thank you in advance...
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #9 on: August 09, 2010, 10:15:28 am »

@catanuba23: Please allow the view of your gallery without logging in. In addition, you need to update your gallery as cpg 1.5.8 is the latest release.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #10 on: August 23, 2010, 11:07:30 pm »

A new version of this plugin has been added to the initial post.

Changes in version 1.3:
- Added a new sharing button if javascript is enabled, otherwise a simple text link is shown
- Removed the included images; they aren't needed anymore
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: Facebook sharer for cpg1.5.x
« Reply #11 on: August 28, 2010, 07:52:48 pm »

Hi papukaija,

Another nice plugin!

For some reason thumbnails never seem to show up.  As you state in your original post an option to display a thumbnail does show but it never actually displays an image.

Do you know if they work for anyone?

I've made a suggestion to Joe Carver's plugin "Add Description Meta to Gallery" to add Facebook's image Meta Tag to the header and it does work fine if that data is included in the header - at least with my attempt at testing.

Anyway thanks for this plugin!

My site:
http://www.whyboysneedparents.com/
(VERY early stage of construction - if you need to, click on Home and you can get to normal Coppermine pages.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #12 on: August 28, 2010, 10:14:38 pm »

Are you sure that your server allows hotlinking of your images?

Do you know if they work for anyone?
You're the first one to report this issue but the v. 1.3 of this plugin is quite new. I'll test if I can reproduce this issue at my website.

I've made a suggestion to Joe Carver's plugin "Add Description Meta to Gallery" to add Facebook's image Meta Tag to the header and it does work fine if that data is included in the header - at least with my attempt at testing.
I can also look at this as Joe may want to keep his plugin a meta description and a rel"canonical" plugin.
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: Facebook sharer for cpg1.5.x
« Reply #13 on: August 28, 2010, 10:53:51 pm »

I also have the same issue. When posting to FB no thumbs are shown...
This happens to my "fan-page" (http://www.facebook.com/pages/SK-Fotoinfo/132057673475762) as well as to my (not public visible) personal page.
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: Facebook sharer for cpg1.5.x
« Reply #14 on: August 28, 2010, 10:58:05 pm »

@wbnp: What have you done to get this working?
I saw your line of code in the other thread. Where have you put that in?
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: Facebook sharer for cpg1.5.x
« Reply #15 on: August 28, 2010, 11:57:57 pm »

Are you sure that your server allows hotlinking of your images?

Yes, I'm pretty sure it does.  I just added the code I showed on Joe's page and it seemed to work perfectly.

Quote from: papukaija
You're the first one to report this issue but the v. 1.3 of this plugin is quite new. I'll test if I can reproduce this issue at my website.

Unless people read the thread carefully at places it almost seemed like you didn't to thumbnails on purpose.  At least that was my impression when I just skimmed the thread of course I found out differently when I went back over the thread.  But I'm pretty bad at jumping to conclusions LOL!

Quote from: papukaija
I can also look at this as Joe may want to keep his plugin a meta description and a rel"canonical" plugin.

I don't remember does your plugin add the description to the Facebook posting?  Joe's does add the description and it works with your code (if yours doesn't add the description)and with his routine it might be easier to add the thumbnail link meta data.

Whatever you guys decide is best is fine with me!!!!!

Keep all the meta stuff in one plugin or keep all the Facebook stuff in one plugin or whatever makes sense for you guys that are actually doing the work!

One additional thought to consider is having the "-" Album Name and the "-" at the end.  To me it seems to be clutter and most people using Facebook don't really need to know the album name.  If people do want the album it might make more sense if it was at the end in parentheses ie filename (Album).

Rushing out the door, hopefully this made sense, I check back and clear it up tomorrow if necessary.

Thanks for looking at this, I really appreciate the work you guys do!
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: Facebook sharer for cpg1.5.x
« Reply #16 on: August 30, 2010, 10:43:43 am »

@wbnp: What have you done to get this working?
I saw your line of code in the other thread. Where have you put that in?

Hi tacher,

The code goes in the header section of the page, however at the moment it only works on a test page where I added the code manually.
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: Facebook sharer for cpg1.5.x
« Reply #17 on: September 01, 2010, 05:19:06 pm »

Hi papukaija,

Sounds like Joe agrees with you that your plugin is where the thumbnail link should be added.  Hopefully you'll be able to do this!   :)

Thanks!
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #18 on: September 01, 2010, 10:30:29 pm »

I noticed that and I have started the work to provide a bugfix. Unfortunately I have a small issue with it.
Logged

alexor

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Facebook sharer for cpg1.5.x
« Reply #19 on: September 05, 2010, 12:13:33 pm »

Hi!
Maybe you can put here, how can i change the display text putting in in FB?
I don't need file name in it- only the album name, that's all....
2008 Fireworks in Panama - DSC 3143 - Alex Orlov

DSC 3143 is unusefull info at all.
I tryed to find it in your php code- but i'm not very familiar to it, so i'm asking your help.
Logged
Pages: [1] 2 3 4 5   Go Up
 

Page created in 0.045 seconds with 21 queries.