Socialshare Plugin - New Version - Now with Facebook Comments Socialshare Plugin - New Version - Now with Facebook Comments
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Socialshare Plugin - New Version - Now with Facebook Comments

Started by gtgillis, November 22, 2011, 10:45:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gtgillis

I am releasing a new version of the SocialShare plugin that now includes Facebook comments.

You can see an example at http://www.rudebastard.com/coppermine/displayimage.php?album=236&pid=8562#top_display_media.

See the included docs for setup and App ID creation.

metamog


metamog

I use the template igames so I have hard to read the black text: Do you know if it's easy to change it to a "dark" version (looked at facebooks development site and they have an option about colorscheme "dark")?

Morgan
SWEDEN

http://echinopsis.eu

gtgillis

To get the dark color scheme edit file codebase.php.

Replace line 300
$html .= '<p><div class="fb-comments" data-href="'.$photo_uri.'" data-num-posts="'.$CONF_SOCIALSHARE_CM['comment_num'].'" data-width="'.$CONF_SOCIALSHARE_CM['comment_width'].'"></div></p>';


with this
$html .= '<p><div class="fb-comments" data-href="'.$photo_uri.'" data-num-posts="'.$CONF_SOCIALSHARE_CM['comment_num'].'" data-width="'.$CONF_SOCIALSHARE_CM['comment_width'].'" data-colorscheme="dark"></div></p>';


Regards,

Greg


Quote from: metamog on November 23, 2011, 02:52:37 AM
I use the template igames so I have hard to read the black text: Do you know if it's easy to change it to a "dark" version (looked at facebooks development site and they have an option about colorscheme "dark")?

Morgan
SWEDEN

http://echinopsis.eu

metamog


metamog

I have an issue with the thumbnail attached to the facebook comment:

Every time I make a comment on my CPG the comment inside my facebook has the wrong thumbnail attached. The chosen thumbnail for the attachment is always the thumbnail one step to the left, in filmstrip.

I've tried to change in config how many thumbs showing but this won't do it.

Is there any possibillity to change what thumbnail is attached by editing the code of this plugin?

Morgan
http://echinopsis.eu

gtgillis

I have tested this on three different sites and can't reproduce the problem. I left a comment on http://echinopsis.eu/displayimage.php?album=lastup&cat=0&pid=5437#top_display_media and it is showing the wrong photo in Facebook. Do you have some other plugins installed?


Quote from: metamog on November 23, 2011, 11:59:23 AM
I have an issue with the thumbnail attached to the facebook comment:

Every time I make a comment on my CPG the comment inside my facebook has the wrong thumbnail attached. The chosen thumbnail for the attachment is always the thumbnail one step to the left, in filmstrip.

I've tried to change in config how many thumbs showing but this won't do it.

Is there any possibillity to change what thumbnail is attached by editing the code of this plugin?

Morgan
http://echinopsis.eu

metamog

Thank you for your effort gtGillis!

I have these plugins installed:
(onlinestats): v2.6
(opensearch): v1.4
(usergal_alphatabs): v1.6
(forum): v2.1 BETA
(bbcode_control): v1.9

Morgan
SWEDEN

metamog

I've moved this plugin to the top (in plugin admin). I've removed old plugins that were not in use. Can't solve this. I don't know how to search for errors.

Anyone know how to proceed, it would be nice to have this plugin working!

Thanks!

Morgan Larsson
Sweden

http://echinopsis.eu

mitko

Hi gtgillis!
Thanks for this plugin. 2 questions to you:
1. Are you going to add Google+ button to list of social networks?
2. Is it possible somehow to inform user/admin about added via facebook comments ?

metamog

Quote from: mitko on November 25, 2011, 12:30:21 PM
Hi gtgillis!
Thanks for this plugin. 2 questions to you:
1. Are you going to add Google+ button to list of social networks?
2. Is it possible somehow to inform user/admin about added via facebook comments ?

If I'm not wrong you can add or edit what social networks/what buttons you want to this plugin. There is info inside "docs".

(about my trouble with wrong thumbnail, posted previously in this thread, the trouble occurs occasionally for me and not every time).

Morgan Larsson

mitko

Quote from: metamog on November 25, 2011, 01:26:45 PM
If I'm not wrong you can add or edit what social networks/what buttons you want to this plugin. There is info inside "docs".
Unfortunately i couldn't get how to add Google+ using this stuff :(

gtgillis

You can moderate the comments here -> https://developers.facebook.com/tools/comments

I'll have to look at google+ and get back to you.

Quote from: mitko on November 25, 2011, 12:30:21 PM
Hi gtgillis!
Thanks for this plugin. 2 questions to you:
1. Are you going to add Google+ button to list of social networks?
2. Is it possible somehow to inform user/admin about added via facebook comments ?

gtgillis

I dig in the code this weekend and let you know what I find.

Quote from: metamog on November 24, 2011, 12:05:26 AM
I've moved this plugin to the top (in plugin admin). I've removed old plugins that were not in use. Can't solve this. I don't know how to search for errors.

Anyone know how to proceed, it would be nice to have this plugin working!

Thanks!

Morgan Larsson
Sweden

http://echinopsis.eu

metamog

Thank you very much gtgillis, it would be real nice to have this plugin showing the proper thumbnail on my gallery!

Morgan Larsson

gtgillis

Quote from: gtgillis on November 25, 2011, 11:16:38 PM
You can moderate the comments here -> https://developers.facebook.com/tools/comments

I'll have to look at google+ and get back to you.

Create a new share and use this -> https://plusone.google.com/_/+1/confirm?hl=en&url=http://<SHAREURL>
When you click the link you will see the field that says share whats new. Enter some text and the photo will show up then click share. You will have to manually close the window. There may be a better url but I have yet to find it.

Look for logos here
http://www.google.com/search?tbm=isch&hl=en&source=hp&biw=1920&bih=946&q=gppgle+plus+logo&gbv=2&oq=gppgle+plus+logo&aq=f&aqi=&aql=&gs_sm=e&gs_upl=2716l9044l0l9435l16l15l0l4l0l0l234l1727l1.7.3l11l0

mitko

Yep, google+ is working now, thank you!
Re to facebook: it looks like i need to create facebook application first to get access to this comments page. Am i right?

metamog

Quote from: mitko on November 26, 2011, 10:17:07 AM
Yep, google+ is working now, thank you!
Re to facebook: it looks like i need to create facebook application first to get access to this comments page. Am i right?

You are right, I've made one.

Morgan

gtgillis

Quote from: mitko on November 26, 2011, 10:17:07 AM
Yep, google+ is working now, thank you!
Re to facebook: it looks like i need to create facebook application first to get access to this comments page. Am i right?

Yes, there are detailed instruction in the plugin docs or you can read theme here ->http://www.rudebastard.com/coppermine/plugins/socialshare/docs/help.htm#_Facebook_app.

mitko

Tried to follow this instruction
Created app than enter $CONF_SOCIALSHARE_CM['comment_appid'] and $CONF_SOCIALSHARE_CM['comment_nameid']
Comment page is available at the picture page. But moderation queue in FB still empty. Suspect the problem is simple, but cant understand :)