I’m using prettyPhoto plugin for a galery. It comes with FB and Twitter share buttons. However, there’s a problem with updating Twitter’s share URL when openening new pictures. The URL always points to the first picture opened.
It seems this is a known bug, has someone managed to get around it?
Okay, I managed to get around this bug by supplying a callback for
changepicturecallbackoption. Inside the callback I then remove Twitter button that was injected by prettyPhoto and initialize a new one with a proper URL.