views:

2817

answers:

5

hello!

I'm new for facebook developer. I want to add comments box to my application and I follow the tutorial in facebook wiki. It's not work in my application.

My Canvas Callback URL is http://122.155.0.71/~facebook/ and I upload xd_receiver.htm to root directory.

and I paste the code

FB.init("b6e07896a1d0889d9784dea150802587", "/xd_receiver.htm");

to my application. It not show up. When I view this page with firebug. I see .

I don't know about xid, where can I create it.

Can you help me about this problem?

thank you...

A: 

Hi giffary if you want comment box like this in my app http://apps.facebook.com/pollonfb then it very easy ,

just use following code

     <fb:comments xid="Identifier" canpost="true" candelete="false"     returnurl="http://apps.facebook.com/myapp/titans/"&gt; 
      <fb:title>Talk about the Titans</fb:title> 
       </fb:comments

XId id simply a unique string to identify your comment box uniquely , For example in my app there is a comment box for each poll , and poll name is xid for their comment box.

vinayrks
Hi vinayrks! I do follow you but it does not work for me.Give me full code please.
giffary
what error you are getting<fb:comments xid="Identifier" canpost="true" candelete="false" returnurl="http://apps.facebook.com/myapp/titans/"> <fb:title>Talk about the Titans</fb:title> </fb:comments>it work very fine in my case
vinayrks
+1  A: 

This tag allow user to post comments in my FBML and display these comments on their Wall. But for some cause, comments can not be displayed in users' Wall even they checked the box "Post comment to my Facebook profile". I don't know what was wrong with the code

I really appreciate if you can help.

This is my FBML: click here to view

And this is my code:

<fb:comments xid="comment" " canpost="true" candelete="false" numpost="10" publish_feed="true"><fb:title>Comment</fb:title></fb:comments>
binhlq
A: 

Hi Thanks for the code. [spamlink removed]

Stretch Marks
This appears to be SPAM
phkahler
A: 

I'm working on an iFrame XFBML application and had trouble getting this to work until I realized what it meant for the fb:comments tag to be an "unsupported" XFBML tag. To get this working, you have to wrap the fb:comments call in fb:serverFbml tags.

Here's the full code:

<fb:serverFbml style="margin-top:15px;">  
            <script type="text/fbml">  
                <fb:fbml> 
                    <fb:comments xid="project_1" publish_feed="false" showform="true" canpost="true" numposts="50" width="467px"><fb:title>Comment on this project</fb:title></fb:comments>
                </fb:fbml>
            </script>
        </fb:serverFbml>
Macfanatic
A: 

I've done that, but still.... sometimes it shows sometimes it does not S:

ivica

related questions