Facebook Share link Dynamically PHP and Thumbnails?!!

Discussion in 'Facebook' started by ausgezeichnete, Jul 2, 2010.

  1. #1
    Hello
    am using this code to share my content
    but the problem is in the looping value
    i can see the right value when i pass the mouse over the sharelink
    but when i click on it its links me to the first value of the "product_id"
    ex:it goes always to #1
    http://localhost/mysite/coupons.php?...1&section=22#1


    the second problem that it doesnt show the thumbnail

    so plz any idea????????????????????????????
    
    <?php do { ?>
    
    
    
    <a name="fb_share" type="button_count" share_url="http://localhost/mysite/coupons.php?product_section_id=<?php echo $_GET['product_section_id'];?>&section=<?php echo $_GET['section'];?>#<?php echo $row_Recordset1['product_id']; ?>" href="http://www.facebook.com/sharer.php">Share</a>
    
                                    <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
    
                            <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    
    
    PHP:
     
    ausgezeichnete, Jul 2, 2010 IP