Forum

Questions and discussions

Sharing on social networks problem

Report any problems or bugs

Sharing on social networks problem

Postby amperial » Mon Apr 09, 2018 4:40 pm

When you share the item page on Twitter or Facebook they pick the smallest thumb and scale it up a lot which makes it look very blurred and awfull. This is what happens: Twitter and Facebook take the tiny one (.../static11/preview1/... .jpg) instead of (.../static11/preview2/... .jpg) which is bigger and would look better.
Where and how to change the code to accomplish that?
amperial
 
Posts: 11
Joined: Sat Apr 07, 2018 9:22 pm

Re: Sharing on social networks problem

Postby admin » Thu May 10, 2018 5:43 am

I advise you to use the service to configure any share buttons: https://www.sharethis.com/

The code can be placed on the pages:
/templates/template[n]/item_photo.tpl
/templates/template[n]/item_video.tpl
/templates/template[n]/item_audio.tpl
/templates/template[n]/item_vector.tpl
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: Sharing on social networks problem

Postby amperial » Wed May 30, 2018 4:56 pm

Your advise doesn't make any difference and doesn't resolve the problem. The problem is not about share buttons, they work just fine. The problem is your script feeds the social media the smallest thumbnail instead of the biggest one. So again, how to make your script feeding the biggest thumbnail?
amperial
 
Posts: 11
Joined: Sat Apr 07, 2018 9:22 pm

Re: Sharing on social networks problem

Postby amperial » Tue Sep 04, 2018 8:53 am

Since admin is unfortunately just ignoring my question, is anybody else out there who have this problem resolved and can share it?
amperial
 
Posts: 11
Joined: Sat Apr 07, 2018 9:22 pm

Re: Sharing on social networks problem

Postby Walter » Tue Sep 04, 2018 6:17 pm

the problem is facebook.
The preview image isn't displayed until the Facebook crawler sees it

https://developers.facebook.com/tools/debug/
Walter
 
Posts: 13
Joined: Fri Aug 31, 2018 12:20 pm
Location: Netherlands

Re: Sharing on social networks problem

Postby admin » Sun Sep 16, 2018 6:12 am

You have to edit the templates:
/templates/templateN/item_photo.tpl
/templates/templateN/item_video.tpl
/templates/templateN/item_audio.tpl
/templates/templateN/item_vector.tpl

and replace the link:
Code: Select all
http://www.facebook.com/sharer/sharer.php?s=100&p[title]={SHARE_TITLE}&p[summary]={SHARE_TITLE}&p[url]={SHARE_URL}&&p[images][0]={SHARE_IMAGE}


with:
Code: Select all
https://www.facebook.com/sharer.php?u={SHARE_URL}&title={SHARE_TITLE}&picture={SHARE_IMAGE}
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: Sharing on social networks problem

Postby amperial » Mon Jan 28, 2019 4:55 pm

No difference. It still picks up the smallest thumb 120X69 in my case.
amperial
 
Posts: 11
Joined: Sat Apr 07, 2018 9:22 pm


Return to Bugs & Troubleshooting

Who is online

Users browsing this forum: No registered users and 6 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.