Options

PhotoID & AlbumIDs?

ShoFotoShoFoto Registered Users Posts: 40 Big grins
i'm not a techie so please bear with me.
I have a FB Like button in each photo page which is looking to receive the URL and Title of that page. Is there a way I can grab the URL of the current page and photo title and set those to two variables which I could then pass to FB?
Here is an example of how this has been done with WordPress. I'm hoping there are variables that contain the value of the current PhotoId, PhotoTitle and AlbumId which I can pass to the necessary OG:URL and OG:Title variables.
I would appreciate any help you sorcerers can provide.
________________________________________________________________________________
“Photography records the gamut of feelings written on the human face, and the beauty of the earth and skies that man has inherited." - Edward Steichen

Website::Facebook::Twitter

Comments

  • Options
    SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited December 14, 2011
    I've tried putting one of my recent gallery urls (http://newpics.huntsvillecarscene.com/gallery/20544211_L85WhV#1627407141_pvv92G9) into the fb linter (debugger) here:
    http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fnewpics.huntsvillecarscene.com%2Fgallery%2F20544211_L85WhV%231627407141_pvv92G9

    The results are fine, while it did give warnings for not having explicit og:url and og:title definitions.

    I'm not sure how your implementation is different from SM's Share and Like button. headscratch.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • Options
    ShoFotoShoFoto Registered Users Posts: 40 Big grins
    edited December 14, 2011
    SamirD wrote: »
    I've tried putting one of my recent gallery urls (http://newpics.huntsvillecarscene.com/gallery/20544211_L85WhV#1627407141_pvv92G9) into the fb linter (debugger) here:
    http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fnewpics.huntsvillecarscene.com%2Fgallery%2F20544211_L85WhV%231627407141_pvv92G9

    The results are fine, while it did give warnings for not having explicit og:url and og:title definitions.

    I'm not sure how your implementation is different from SM's Share and Like button. <img src="https://us.v-cdn.net/6029383/emoji/headscratch.gif&quot; border="0" alt="" >

    When we don't pass a specific URL of the photo (along with title/name of the photo), FB is not able to publish a notification that indicates a user likes a specific photo. It will only say the user likes your site. In your implementation, if I were to "Like" a photo, would the notification generated be "Shofoto likes <photo name> in <site name>" or simply "Shofoto likes <site name>

    SM's current integration passes Album information but not Photo specific information; so it doesn't solve the problem completely.

    Here is a link that works perfectly. The trick is to be able to manipulate the last two parts of the URL (which represent AlbumID & PhotoID) depending on which page the visitor is on and pass it to FB. I was hoping to set up the OG:URL & OG:Title parameters with variables that at runtime provide the URL of the current page (i.e. of the album + photo) and name/title of the photo (if it exists).

    Since integration APIs today move this type of information, I'm hoping such variables/tags exist in SM. JS Gurus - help please???

    BTW here is a thread I posted in the support forum on this topic - awaiting a true answer <img src="https://us.v-cdn.net/6029383/emoji/ne_nau.gif&quot; border="0" alt="" >
    ________________________________________________________________________________
    “Photography records the gamut of feelings written on the human face, and the beauty of the earth and skies that man has inherited." - Edward Steichen

    Website::Facebook::Twitter
  • Options
    SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited December 15, 2011
    I just read the thread where you originally asked about this, and I hate to say this, but I think you're a bit on your own with this from SM's response. But not to fear because I think the piece that you need is somewhere in existing customizations that are album and/or photo based.

    This isn't an easy task, but should lead you onto the road to find what you need. Search for every customization that uses albums/images as variables. From here, you should discover what some of these are. You might have to guess and figure out the rest as I don't think much of the CSS variables are documented anywhere. Good luck!
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • Options
    ShoFotoShoFoto Registered Users Posts: 40 Big grins
    edited December 19, 2011
    SamirD wrote: »
    I just read the thread where you originally asked about this, and I hate to say this, but I think you're a bit on your own with this from SM's response. But not to fear because I think the piece that you need is somewhere in existing customizations that are album and/or photo based.

    This isn't an easy task, but should lead you onto the road to find what you need. Search for every customization that uses albums/images as variables. From here, you should discover what some of these are. You might have to guess and figure out the rest as I don't think much of the CSS variables are documented anywhere. Good luck!
    Yeah, I thought I could get Support from SM by being a Pro customer ne_nau.gif
    ________________________________________________________________________________
    “Photography records the gamut of feelings written on the human face, and the beauty of the earth and skies that man has inherited." - Edward Steichen

    Website::Facebook::Twitter
Sign In or Register to comment.