jquery - facebook like button dynamic thumbnail with ajax gallery -
jquery - facebook like button dynamic thumbnail with ajax gallery -
i want set facebook button website. located on image archive page. image archive loaded dynamicly via jquery $.post()
function. archive consists of grid of images , single image view. when click on image in grid bigger version loaded single image view. want provide facebook button share website , thumbnail selected image should appear.
the meta tag property og:image looks follows
<meta id="active-image" property="og:image" content="http://mysite.com/default_image.jpg" />
when clicks on image in grid content attribute of meta tag changed url of current image in single view.
$('#active-image').attr('content','http://mysite.com/detail_image.jpg');
as href of button use
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http://mysite.com">facebook</a>
the problem thumbnail provided popup facebook window not selected one. because page has "scraped" stated here faceboook: plugin
does has experience in changing og:image property dynamicly jquery. possible?
regards, peter
does has experience in changing og:image property dynamicly jquery. possible?
i have experience trying alter og meta tags using jquery, however, wont work. reason why facebook linter looks @ html in response , not run scripts. webserver code needs programmed in way smart plenty serve facebook right og meta tags.
jquery ajax facebook like thumbnails
Comments
Post a Comment