**Attn Gurus**. Problem with facebook comments widget

Discussion in 'Facebook' started by shanghoshal, Apr 3, 2012.

  1. #1
    Hi Guys

    Wonder if some one here can help me with this.

    I wanted to create a widget to be placed at the bottom of the pages in my site from here

    http://developers.facebook.com/docs/reference/plugins/comments/

    But can i do it without specifying the page? i mean the pages are user generated so cant specify them really.. wonder if there is a easy java fix for this.

    thanks in advance.

    reagrds
     
    shanghoshal, Apr 3, 2012 IP
  2. himanshujaju

    himanshujaju Guest

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    assuming you are using XFBML.... see this code : <fb:comments href="http://example.com" num_posts="2" width="470"></fb:comments> .... when you are generating a page by user, just put the link in the href section.
    example: page is profile.php?uid=100
    <fb:comments href="http://example.com/profile.php?uid=100" ...............></fb:comments>
     
    himanshujaju, Apr 11, 2012 IP