Wednesday, November 26, 2014

website's content on the faebook wall Yii

Standard





post my website's content on the faebook wall. who want to share it.

<pre class="java" name="code"><div id="fb-root">
</div>
<script>(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 = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-share-button" data-href="&lt;?php echo Yii::app()-&gt;theme-&gt;baseUrl;?&gt;/index.php/listings/&lt;?php echo $model-&gt;ListingId; ?&gt;" data-type="button_count" data-width="200">
</div>
&lt;!--<div class="fb-share-button" data-href="http://channasmcs.blogspot.com/2014/09/onclick-selected-value-in-input-box.html" data-type="button_count" data-width="200">
</div>
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-type="box_count">
</div>
</pre>


1 comment: