Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Freitag, 18. Februar 2011, 23:33

facebook sharing and the & symbol

i am trying to create a "share" button for facebook that gets the current url,fov,hlookat and vlookat so people can share specific views inside any pano. i have almost gotten my first test to work. using this code it is close but facebook is stripping off everything after the & sign and i am left with http://www.virtualnorthland.com/panos/du…no=panorama.xml. Neither of the below work.

onclick="openurl('http://www.facebook.com/share.php?u=http://www.virtualnorthland.com/panos/duluth2/panorama.swf?pano=panorama.xml&view.fov=70&view.hlookat=90&view.vlookat=0')"
onclick="openurl('http://www.facebook.com/share.php?u=http://www.virtualnorthland.com/panos/duluth2/panorama.swf?pano=panorama.xml&view.fov=70&view.hlookat=90&view.vlookat=0')"

if i sign into facebook and use thier button to share a link and paste full url there it accepts it and works fine. however using the above code it will not parse past "&". i have seen other solutions where the link is generated, the user clicks the Facebook button and has to manually paste the url in but that seems a little silly. if we could pass the & symbol we can share specific views inside any pano.

2

Mittwoch, 23. Februar 2011, 20:43

Hi,

http-get parameters are normally separated by a & character,
so the php script from Facebook may think the 'u' parameter ends with the first & character,
maybe try using & or %26...

best regards,
Klaus

3

Mittwoch, 23. Februar 2011, 22:27

we figured this out in another thread. when passin a URL from krpano using ASCII code you must use 2 % signs. anywhere you want to use %26 has to be %%26.