Can someone give a configured code example?

41 views
Skip to first unread message

Bryan

unread,
Apr 30, 2010, 1:35:22 AM4/30/10
to OpenLike
How would you set configuration options in open like?

s: array of services to list. Values can be 'digg', 'stumbleupon',
'hunch', 'facebook', or 'reddit' (defaults to all services).
header: string to display above widget icons (defaults to 'Like
this:')
url: the url of the object the user is liking (defaults to current
page url). This is useful if you have several things on a page that
people might like, such as blog snippets.
title: the title of the object the user is liking (default to current
page title).

<script type="text/javascript" src="http://openlike.org/v1/
openlike.js"></script>
<script type="text/javascript">OPENLIKE.Widget()</script>

Thanks,

B

peter

unread,
Apr 30, 2010, 12:13:39 PM4/30/10
to OpenLike
You can pass in the options inside an object like this:

<script type="text/javascript" src="http://openlike.org/v1/
openlike.js"></script>
<script type="text/javascript">
OPENLIKE.Widget({
s: ['twitter', 'google', 'digg', 'reddit', 'stumbleupon', 'hunch'],
header: 'Like this on other sites:'
})
</script>

Bryan

unread,
May 1, 2010, 11:24:27 AM5/1/10
to OpenLike
Awesome. Thanks

blackhawx

unread,
Jul 30, 2012, 9:52:28 AM7/30/12
to open...@googlegroups.com
How can we load multiple openlikes on the same page for different <div> content blocks?  lets say 2 or 3 different divs for example?
Reply all
Reply to author
Forward
0 new messages