PhotoID & AlbumIDs?
ShoFoto
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.
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
“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
0
Comments
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.
Want faster uploading? Vote for FTP!
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" 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
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!
Want faster uploading? Vote for FTP!
“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