|
developerdocumentation
de , en This document is intended for developers who want to write applications that can interact with the Spreadly Button API Developer DocumentationGetting StartedThe Spread.ly button is a tool to share content in several social networks simultanously. This content can also be deals of many sorts that give incentives to the user for liking an item. You can use the Spread.ly button API to customize many aspects of the sharing experience for your users. Mandatory ParametersMandatory parameters are the minimum requirement for the button to work. You should set them programmatically for your software (cms, blog or online shop software) - otherwise you would need to configure each button manually for every separate page (url).
Example: iFrame: <iframe src="http://button.spread.ly/?url={url}&social={1|0}"
style="overflow:hidden; width: 420px; height: 30px; padding: 0px 0;"
frameborder="0"
scrolling="no"
marginheight="0"
allowTransparency="true">
</iframe>link: <a href="http://spread.ly/?url={url}"
target="_blank"
rel="like">
<img src="http://spreadly.com/img/staticbutton.png"
alt="Like"
/>
</a>Optional ParametersOptional parameters can enhance the user experience decidedly, by giving you more control over how your shared content will look like. If you don't define these parameters, the Spread.ly crawler software will visit your page and will try to determine the most relevant content programmatically.
Example: iFrame: <iframe src="http://button.spread.ly/?url={url}&social={1|0}&title={title}&description={description}&photo={photo-url}&tags={tag,tag}&label={like}&color={973765}"
style="overflow:hidden; width: 420px; height: 30px; padding: 0px 0;"
frameborder="0"
scrolling="no"
marginheight="0"
allowTransparency="true">
</iframe>link: <a href="http://button.spread.ly/?url={url}&title={title}&description={description}&photo={photo-url}&tags={tag,tag}&color={973765}"
target="_blank"
rel="like">
<img src="http://spreadly.com/img/staticbutton.png"
alt="Like"
/>
</a>Other Restrictions
Full ExampleA complete example how a share button/link could look like. Sample page: http://spreadly.com
iFrame: <iframe src="http://button.spread.ly/?url=http%3A%2F%2Fspreadly.com%2F&social=1&title=Spread.ly&description=first%20choice%20for%20social%20sharing&photo=http%3A%2F%2Fspreadly.com%2Fimg%2Fspreadlyicon.jpg&tags=like%2Cdeal%2Cspread%2Cshare&color=973765&label=share"
style="overflow:hidden; width: 420px; height: 60px; padding: 0px 0;"
frameborder="0"
scrolling="no"
marginheight="0"
allowTransparency="true">
</iframe>link: <a href="http://button.spread.ly/?url=http%3A%2F%2Fspreadly.com%2F&title=Spread.ly&description=first%20choice%20for%20social%20sharing&photo=http%3A%2F%2Fspreadly.com%2Fimg%2Fspreadlyicon.jpg&tags=like%2Cdeal%2Cspread%2Cshare&color=973765"
target="_blank"
rel="like">
<img src="http://spreadly.com/img/staticbutton.png"
alt="Like"
/>
</a>
| ||||||||||||||||||||||||||||||||
Bitte erstellt eine einfachere Möglichkeit, um individuelle urls zu generieren. Das heisst, ohne auf dem eigenen CMS oder per PHP etc. irgendwelche Strukturen aufbauen zu müssen.
Wunsch: Man sollte von euch einen Code erhalten, den man auf die Seite einbaut und dieser erkennt und steuert alles automatisch.
Das Funktioniert auch... einfach URL leer lassen!
weil ich das Layout des Knopfes anpassen wollte, habe ich testweise auf die Version mit dem Link statt dem iframe umgestellt. jetzt geht aber nur ein neues leeres Fenster mit dem 'alten' Knopf auf und dort müsste ich ein 2. Mal klicken ? Ist das richtig ? Warum komme ich nicht gleich zum 'richtigen' Likefenster ?
< iframe src="http://widgets.yiid.com/w/like/full.php?url={php}echo urlencode($this->get_template_vars('canonical'));{/php}&cult=de&type=like&title={$table_data.0.uberschrift|escape:"url"}&color=%23000000&short=&social=1" style="overflow:hidden; width:280px;height: 65px; padding: 3px 0;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" allowTransparency="true"></iframe>
<!-- <a href="http://button.spread.ly/?url={php}echo urlencode($this->get_template_vars('canonical'));{/php}&title={$table_data.0.uberschrift|escape:"url"}&description=&photo=&tags=familienservice%2Cfamilienfreund%2Cfamiliennews"
</a> -->Für den Link muss man http://spread.ly/?url=... benutzen (die Subdomain "button" weglassen).
ganz nett aber wenn als widget in einem blog von blogger eingesetzt zeigt es halt nur einen button auf der site an anstelle- und das ist doch das wichtige!- automatisch unter jedem post! das hatte man doch schon alles... da kann ich gleich wieder addthis nehmen denn deren code kann ich bequem in ein widget packen ohne an den quellcode zu müssen. schade