<div dir="ltr">Not totally sure what your issues are but did you look at the comments section on the facebooker tutorial.<br><br>They appear to be working there, although in there simplest form.<br><br><a href="http://apps.new.facebook.com/facebooker_tutorial/fbml/comments">http://apps.new.facebook.com/facebooker_tutorial/fbml/comments</a><br>
<br>I haven&#39;t tried the board yet though.<br><br><br><br>Dave<br><br><div class="gmail_quote">On Thu, Sep 4, 2008 at 9:52 AM, Zhao Lu <span dir="ltr">&lt;<a href="http://zhao.lu.us">zhao.lu.us</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hmm that shouldn&#39;t be the case. &nbsp;I had to internally store the comments<br>
because I wanted to be able to search them. &nbsp;As far as discussion board<br>
goes, I&#39;d really love to use the fbml rather than implementing it.<br>
<br>
Since I&#39;m new to this whole rails thing, all I can think of is to look at the<br>
test cases (rails app should be well tested, right?). &nbsp;I found a bunch<br>
of tests under<br>
vendor/plugins/facebooker/test/. &nbsp;rails_integration_test.rb<br>
contains some test cases on comments and fb_board. &nbsp;I was hoping to figure<br>
out the usage of them by merely looking at the test case. &nbsp;I&#39;m not sure if<br>
you&#39;ve looked at those and if they&#39;re helpful to you.<br>
I figured if they aren&#39;t then it means the test coverage can be improved. &nbsp;So<br>
you (or facebooker users like us) could probably improve it by adding new test<br>
cases, which should also help with debugging our problems as well.<br>
<br>
Zhao<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Sep 4, 2008 at 12:02 AM, Allen Walker &lt;<a href="mailto:auswalk@gmail.com">auswalk@gmail.com</a>&gt; wrote:<br>
&gt; Sadly, to do comments I had to implement what you have done, which<br>
&gt; theoretically is much harder than just using the built in facebook comments<br>
&gt; tag. Now that I wish to use a discussion board, it really behooves me to<br>
&gt; figure this out b/c a discussion board is much more advanced than just<br>
&gt; comments.<br>
&gt;<br>
&gt; Zhao Lu wrote:<br>
&gt;&gt;<br>
&gt;&gt; you are ahead of me, again.<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Sep 3, 2008 at 10:46 PM, Allen Walker &lt;<a href="mailto:auswalk@gmail.com">auswalk@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Actually I&#39;m not even doing that. You are internally storing you own<br>
&gt;&gt;&gt; comments.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m simply attempting to use facebooks built in servers to run my<br>
&gt;&gt;&gt; dicussion<br>
&gt;&gt;&gt; boards and comments via the &lt;fb:board&gt; and &lt;fb:comments&gt; code. It should<br>
&gt;&gt;&gt; be<br>
&gt;&gt;&gt; rather trivial and for some reason it&#39;s not working. It must have<br>
&gt;&gt;&gt; something<br>
&gt;&gt;&gt; to do with how facebook is reading the URL and not correctly mapping it<br>
&gt;&gt;&gt; to<br>
&gt;&gt;&gt; the xid.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Zhao Lu wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I haven&#39;t tried fb_board but I did get fb_comment working. &nbsp;The<br>
&gt;&gt;&gt;&gt; instruction in the beta _book_ wasn&#39;t quite<br>
&gt;&gt;&gt;&gt; complete and I had to look at the source code for chapter 8 to get<br>
&gt;&gt;&gt;&gt; things working. &nbsp;I had the same problem<br>
&gt;&gt;&gt;&gt; with you (or at least I think it&#39;s the same problem). &nbsp;Basically I<br>
&gt;&gt;&gt;&gt; type some comment in the text area and click<br>
&gt;&gt;&gt;&gt; submit and nothing &#39;happens&#39;. &nbsp;When I look into the database table the<br>
&gt;&gt;&gt;&gt; new comment is there so what I was<br>
&gt;&gt;&gt;&gt; missing was to pull the comments out from the table and display them.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; My code structure is pretty much the same as karate poke. &nbsp;I have this<br>
&gt;&gt;&gt;&gt; code snippet in my view:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &lt;% form_for Comment.new do %&gt;<br>
&gt;&gt;&gt;&gt; &nbsp;Comment on gifts: &lt;br /&gt;<br>
&gt;&gt;&gt;&gt; &nbsp;&lt;%= text_area_tag :body %&gt; &lt;br /&gt;<br>
&gt;&gt;&gt;&gt; &nbsp;&lt;%= hidden_field_tag :comment_receiver, @<a href="http://user.id" target="_blank">user.id</a> %&gt;<br>
&gt;&gt;&gt;&gt; &nbsp;&lt;%= submit_tag &#39;Post&#39; %&gt;<br>
&gt;&gt;&gt;&gt; &lt;% end %&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &lt;div id=&quot;all_comments&quot;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp;&lt;%= render :partial=&gt;&quot;comments/comments&quot; %&gt;<br>
&gt;&gt;&gt;&gt; &lt;/div&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I was missing the &lt;div&gt;...&lt;/div&gt; portion before. &nbsp;Do you have that and<br>
&gt;&gt;&gt;&gt; the _comments.erb partial in place?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Zhao<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Sep 3, 2008 at 9:37 PM, Allen Walker &lt;<a href="mailto:auswalk@gmail.com">auswalk@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; It would sure be nice if these would work.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I have the following in my home controller:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; &lt;%= fb_board(&quot;golf_board1&quot;) %&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; it renders:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; &lt;fb:board xid=&quot;golf_board1&quot; /&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; The discussion board shows on my page, but when I click start new<br>
&gt;&gt;&gt;&gt;&gt; topic,<br>
&gt;&gt;&gt;&gt;&gt; it<br>
&gt;&gt;&gt;&gt;&gt; reloads the previous URL (default callback) and continues to display<br>
&gt;&gt;&gt;&gt;&gt; &quot;Start<br>
&gt;&gt;&gt;&gt;&gt; new topic&quot;.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; fb_comments does the same thing.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Btw my URL is this after clicking &quot;start new topic&quot;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; <a href="http://apps.new.facebook.com/myapp/?fbapp_ec=751" target="_blank">http://apps.new.facebook.com/myapp/?fbapp_ec=751</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; thanks<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Facebooker-talk mailing list<br>
&gt; <a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
&gt; <a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">Zhao<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
</div></div></blockquote></div><br></div>