Facebook components

asked 2012-04-10 17:39:20 +0800

shumy gravatar image shumy
244 1

Are there any ZK components for facebook API, like the login button?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-04-10 19:49:49 +0800

myzkdemo gravatar image myzkdemo
154 3

Hi Shumy,

you can use the html component.

Try this:


		(function(d, s, id) { var js, fjs =
		d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return;
		js = d.createElement(s); js.id = id; js.src =
		fjs.parentNode.insertBefore(js, fjs); }(document, 'script',
		'facebook-jssdk')); ]]>

	<div id="fb-root"></div>

			<div class="fb-like-box"
				data-href="http://www.facebook.com/zk.framework" data-width="292"
				data-show-faces="true" data-stream="true" data-header="true">


link publish delete flag offensive edit

answered 2016-06-29 15:31:05 +0800

andij62 gravatar image andij62
301 1 6

Hi all,

is it possible to set the width to 100%. When i set
data-width="100%" it does not work!

Regards Andi

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2012-04-10 17:39:20 +0800

Seen: 157 times

Last updated: Jun 29 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More