Thank you for your help in supplying info and testing it.
The fix works as follows:
Rendering the %%wppa%% script commands into photo display is now initially disabled, until the action wp_head is performed.
This means that the initial one time
<input> tag (required to prevent spamming votes) is no longer removed by the facebook plugin:
$text = addslashes( strip_tags($text) ); in the code above, causing the illegal vote attemp error message, and my first script tag (one time initializations of (translated) texts like 'Slideshow', 'Start' etc) does no longer appear in the last meta tag, that caused the 'Start Undefined' messages etc. In the meta tag (content=..) now comes
[WPPA+ Photo display]
a proof that the rendering is still off at that time.
See below (a part of the source code as seen by the browser):
<!-- Start of Facebook Meta Tags by shailan (http://shailan.com) -->
<meta property="og:title" content="Photo Gallery" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://scottpiro.com/photo-gallery/" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="scottpiro.com" />
content="[WPPA+ Photo display]" />
<!-- End of Facebook Meta Tags -->
<!-- WPPA+ Rendering enabled -->
<!-- Main CSS -->
When you see:
<!-- WPPA+ Rendering enabled --> that is the place from where any %%wppa%% invocation will be rendered to the full html, including the input tag and the runtime style script.