Before you ask please READ THIS

Sharing photo on facebook

edited July 2017 in FatMoon Posts: 48
Hi,

sharing a single photo on facebook doesnt work.

for example for this one:

http://www.cyrilpreiss.com/album/uncover/#lg=1&slide=0

Facebook doens't konw how to process such url.

and the url is showing the photo slide index, but it might be wrong if i change my album order later.

Is there a way to get an url of the actual pic ?

is there a way to fix this ?

it's very important to be able to share a photo

Post edited by cyrilp on

Comments

  • AirAir
    Posts: 10,970
    Hello:-)
    cyrilp said: Is there a way to get an url of the actual pic ?
    I am leaving office now, but please read http://apollo13.eu/docs/apollo13_framework_theme/#!/single_album_social_icons
    cyrilp said: and the url is showing the photo slide index, but it might be wrong if i change my album order later.
    That is true. What you would see better as parameter to locate later proper photo? Path to image might be ugly for some folks. Name of file is also not unique. Position is most stable and elegant. However I am open to suggestions.

    With kind regards.
  • Posts: 48
    Using Addtoany plugin is almost fine.

    Here an example of link it shares on facebook:

    http://www.cyrilpreiss.com/album/gerberoy/20170526-9507_dxo/

    The post show fine on facebook, but... when opening this link the photo displayed is a small version and there is a huge space above making it very strange.
    pbm.jpg
    1024 x 437 - 66K
  • Posts: 48
    The link shared by the lightbox share icon is working fine:

    http://www.cyrilpreiss.com/album/gerberoy/#lg=1&slide=1

    but the post in facebook doesn't show anything...

    and as i said before, if i modify the album by changing photo order, this link might show another photo with this "slide = 1" value...

    using position in link is elegant but as pictures position might change this doesn't give a reliable way to link to the photo.
    Maybe you can add an option to let it this way for people who don't care about this and add another option with a resilient link for each photo.

    Being able to share a photo link is essential and not only for facebook sharing.

    I don't want to send a photo link to a client and when they open it a few days later it doesn't show the expected photo
    pbm2.jpg
    529 x 534 - 37K
  • AirAir
    Posts: 10,970
    cyrilp said: The post show fine on facebook, but... when opening this link the photo displayed is a small version and there is a huge space above making it very strange.
    This is so called "Attachment page", that is why it looks this way. This empty space, above photo, should be title of photo, but you probably don't have title set for this image. However as I tested now in such case at least filename should be displayed.
    1. When you edit this image in media do you have any title?
    image

    2. Please tell me what else you would change on this page?

    cyrilp said: http://www.cyrilpreiss.com/album/gerberoy/#lg=1&slide=1

    but the post in facebook doesn't show anything...
    Try installing plugin http://apollo13.eu/docs/apollo13_framework_theme/#!/plugins_recommendations_facebook_open_graph
    and then scrap again album using this tool https://developers.facebook.com/tools/debug/sharing/?q=http://www.cyrilpreiss.com/album/gerberoy/
    cyrilp said: Maybe you can add an option to let it this way for people who don't care about this and add another option with a resilient link for each photo.
    You are totally right, and thanks for bringing this up. You know what, I will see if I can combine something from like id+file_name/title - it should also look nicer then.

    With kind regards.
    ss-2017-07-19_10-18-27.png
    635 x 261 - 15K
  • Posts: 48
    hi,

    thanks again for answering so quickly. i have just paid you a latte to thank you.

    i had installed the facebook plugin, sharing an album is working, the problem is with sharing a photo.

    May be not a good idea to include "title" in "id+file_name/title". Title might be modified to.
    i think you should use something that will always be valid like the file_name.

    Do you have an idea how long it could take you to add this ?
  • AirAir
    Posts: 10,970
    cyrilp said: thanks again for answering so quickly. i have just paid you a latte to thank you.
    Wow, thanks for that!
    cyrilp said: May be not a good idea to include "title" in "id+file_name/title". Title might be modified to.
    i think you should use something that will always be valid like the file_name.
    Good point there. However I thought about ID + something(title or file name, will see what is possible). ID will make sure that we can target same photo every time. Title Would make it prettier ;-)
    cyrilp said:
    Do you have an idea how long it could take you to add this ?
    I am working on things asked by users before your questions came, so I have to put your ideas in queue. However I think they are really important, so as soon I am done with current tasks I will get to this.
    Hard to tell when it be. I plan to release update in around 12 days. If some things will not make it to this update, they will be added in next.

    Lately there is lot of work on forum, so it limits my development time ;-)

    With kind regards.
  • Posts: 48
    Thanks for taking the time to help us !
  • AirAir
    Posts: 10,970
    That is what I am here for:-)
  • AirAir
    Posts: 10,970
    Hi again :-)

    I have just checked this shearing thing and it looks that it works good but different then we wrote.

    I have such part of URL album/gallery-description-2/?gallery_item=gallery18.jpg#lg=1&slide=3
    When page loads script searches by all photos and search for file that is named gallery18.jpg.

    Then when it finds it, script adds part #lg=1&slide=3 to inform light-box which slide to open.

    I have checked and moved photo after sharing and it still finds it correctly.

    So you can share your links safely for now.
    However changing this to ID + title could make it much prettier and more reliable, when user would upload two photos with same name on different months.

    With kind regards.
  • AirAir
    Posts: 10,970
    OK i think I know what you were reffering to previously.

    All that I described in above post is true if you share image form album with addToAny, then it lends on Facebook, and someone click it, and it opens proper photo on your site.

    Issues is when you just open album(in bricks mode), then open one image in lightbox ane want to copy link to this photo, then this link looks like album/gallery-description-2/#lg=1&slide=3 so it doesn't have part ?gallery_item=gallery18.jpg that identify that photo, only position of slide.

    I will see what can be done in that matter, and probably write later what I came to.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion