I would like to share the content of a div
in Facebook, the div
is within a cycle for
of PHP, therefore various information is loaded in a table. What I would like to know is how to share the content of each of the div
that are generated.
With the Facebook plugin, you share a random image with a random description and the title of my page.
This is the code that I would like to share. That would be row->imagen
, row->descripcion
and row->titulo
.
Does anyone have an idea of how it can be done?
<td id="compartir"><div class="row-same-height row-full-height">
<div class="col-md-6 col-md-height col-full-height border-right">
<div class="panel">
<div class="col-md-5 blog-post-img">
<!------------------------------------------------------------------------------------------------------------------------------->
<?php if($row->imagen == ""){?>
<center><img src="class/imagen.png" style="max-height:500px;" alt=""></center>
<?php }else{ ?>
<center><img src="class/<?php print($row->imagen);?>" style="max-height:400px;" alt=""></center>
<?php } ?>
<!-------------------------------------------------------------------------------------------------------------------------------->
<div class="col-md-7 panel-body">
<h4 id="hola"><?php print($row->titulo);?></h4>
<small style="font-size:20px;">Costo: $<?php print($row->costo);?><br><a href="#"><?php print($row->categoria);?></a></small>
<p><?php print($row->descripcion);?></p><br>
<!-- Boton de Compartir -->
<div class="fb-share-button" data-href="http://pagina.com/asdf/asdfasdf.php" data-layout="button_count"></div>
<br><br><br><br><br>
</div><!--/.panel-body-->
</div><!--/.panel-->
</div><!--/.col-->
</td>