Dynamic (Ajax) sharing buttons (Facebook, Google+ and Twitter) for sharing images with links and descriptions

There were a few days when I was looking for a solution, and I can’t understand why it still does not work.

Here is my goal : I have a website in several ways. Images are dynamically changed (with the previous and next buttons). I just want to share the image on social networks (facebook, google + and twitter) and actually see the image in my wall with a little description and a link to the page.

Accuracy : An image is a thumbnail (so, not the same url) of the main image, and the link I want to publish is neither the page on which I am included (which is static due to Ajax), nor its image.

My attempts : I almost got it on facebook, but the image upload failed, and it was with the sharing button (which seems to be outdated in favor of the similar), and for google + the +1 button will turn red after I click on her ... I tried XFBML and OpenGraph, but the problem is in Ajax (url is one of the pages or does not change even with createElement ("

Questions : 1. Is there a packaged solution (for example, addthis, but I work the way I want)? 2. Or do you have one (or a clue) for me, please? 3. Am I the only one who thinks the official facebook and google + ajax documentation is lame?

Many thanks. Hugo

PS : if I could fly out to edit a comment with the content I'm going to share, that would be fantastic!

+5
2

- .

, , (, facebook, google +). Javascript , . Javascript " , ". , div = "display: none;" .

IP- ( ), , 502 , , , . , .

+1

, , : , URL- , . , Facebook, Google +1, .

. , AJAX. , . :

, -: . -, , , .

> , JavaScript . .

, .

0

All Articles