2012-01-10 75 views
1

我有加載圖像每次應用程序用戶登錄到我的FB應用 我喜歡每一個用戶都會有自己的FB評論框單一的PHP動態頁面,我如何配置它爲每個用戶唯一 。 我知道PHP的一部分,我有用戶ID,在一頁,但FB評論我找不到JS部分。 這是我現在有:我的頁面中的每個對象的Facebook評論插件?

<div class="block"> 
       <div class="fb-like-box" data-href="http://www.facebook.com/apps/application.php?id=13xxxxxxx8434" data-width="710" data-height="60" data-show-faces="true" data-stream="false" data-header="false"></div> 
     </div> 
     <div class="bottom-block"> 
      <div class="fb-comments" data-href="http://xxx.co" data-num-posts="2" data-width="500"></div> 
    </div> 

回答

1
data-href="http://xxx.co/singlePhpFile.php?userid=123" 

只是改變了用戶ID)

+0

,如果我喜歡相同的用戶將有評論boxs的數量? – user63898 2012-01-10 20:20:34

+0

也在哪裏可以找到我可以在數據中使用哪個參數-href – user63898 2012-01-10 20:45:46

+0

http://xxx.co/singlePhpFile.php?userid=123&commentBoxId=1 http://xxx.co/singlePhpFile.php?userid=123&commentBoxId= 2 http://xxx.co/singlePhpFile.php?userid=123&commentBoxId=3 必須有在該框屬於..它使用了唯一的標識符鏈接 – walialu 2012-01-11 14:36:55