<div dir="ltr">Not sure about that. I don't set the url in the tutorial at all. Each lesson has it own comment block with just and xid.<br><br>Dave<br><br><br><div class="gmail_quote">On Thu, Sep 4, 2008 at 10:53 AM, Allen Walker <span dir="ltr"><<a href="mailto:auswalk@gmail.com">auswalk@gmail.com</a>></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;"><div dir="ltr">Yeah I've looked at that tutorial. It's very straightforward and I've tried it as it says with no luck. I've gotten everything else to work so i'm quite puzzled. It must have something to do with routing and url recognition is the only thing I can figure, as I believe the fb:board and fb:comments tag map based on the URL and the xid=value.<div>
<div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote">On Thu, Sep 4, 2008 at 11:09 AM, David Clements <span dir="ltr"><<a href="mailto:digidigo@gmail.com" target="_blank">digidigo@gmail.com</a>></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;">
<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" target="_blank">http://apps.new.facebook.com/facebooker_tutorial/fbml/comments</a><br>
<br>I haven't tried the board yet though.<br><br><br><br>Dave<div><div></div><div><br><br><div class="gmail_quote">On Thu, Sep 4, 2008 at 9:52 AM, Zhao Lu <span dir="ltr"><<a href="http://zhao.lu.us" target="_blank">zhao.lu.us</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>></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't be the case. I had to internally store the comments<br>
because I wanted to be able to search them. As far as discussion board<br>
goes, I'd really love to use the fbml rather than implementing it.<br>
<br>
Since I'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?). I found a bunch<br>
of tests under<br>
vendor/plugins/facebooker/test/. rails_integration_test.rb<br>
contains some test cases on comments and fb_board. I was hoping to figure<br>
out the usage of them by merely looking at the test case. I'm not sure if<br>
you've looked at those and if they're helpful to you.<br>
I figured if they aren't then it means the test coverage can be improved. 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><br>
On Thu, Sep 4, 2008 at 12:02 AM, Allen Walker <<a href="mailto:auswalk@gmail.com" target="_blank">auswalk@gmail.com</a>> wrote:<br>
> Sadly, to do comments I had to implement what you have done, which<br>
> theoretically is much harder than just using the built in facebook comments<br>
> tag. Now that I wish to use a discussion board, it really behooves me to<br>
> figure this out b/c a discussion board is much more advanced than just<br>
> comments.<br>
><br>
> Zhao Lu wrote:<br>
>><br>
>> you are ahead of me, again.<br>
>><br>
>> On Wed, Sep 3, 2008 at 10:46 PM, Allen Walker <<a href="mailto:auswalk@gmail.com" target="_blank">auswalk@gmail.com</a>> wrote:<br>
>><br>
>>><br>
>>> Actually I'm not even doing that. You are internally storing you own<br>
>>> comments.<br>
>>><br>
>>> I'm simply attempting to use facebooks built in servers to run my<br>
>>> dicussion<br>
>>> boards and comments via the <fb:board> and <fb:comments> code. It should<br>
>>> be<br>
>>> rather trivial and for some reason it's not working. It must have<br>
>>> something<br>
>>> to do with how facebook is reading the URL and not correctly mapping it<br>
>>> to<br>
>>> the xid.<br>
>>><br>
>>> Zhao Lu wrote:<br>
>>><br>
>>>><br>
>>>> I haven't tried fb_board but I did get fb_comment working. The<br>
>>>> instruction in the beta _book_ wasn't quite<br>
>>>> complete and I had to look at the source code for chapter 8 to get<br>
>>>> things working. I had the same problem<br>
>>>> with you (or at least I think it's the same problem). Basically I<br>
>>>> type some comment in the text area and click<br>
>>>> submit and nothing 'happens'. When I look into the database table the<br>
>>>> new comment is there so what I was<br>
>>>> missing was to pull the comments out from the table and display them.<br>
>>>><br>
>>>> My code structure is pretty much the same as karate poke. I have this<br>
>>>> code snippet in my view:<br>
>>>><br>
>>>> <% form_for Comment.new do %><br>
>>>> Comment on gifts: <br /><br>
>>>> <%= text_area_tag :body %> <br /><br>
>>>> <%= hidden_field_tag :comment_receiver, @<a href="http://user.id" target="_blank">user.id</a> %><br>
>>>> <%= submit_tag 'Post' %><br>
>>>> <% end %><br>
>>>><br>
>>>> <div id="all_comments"><br>
>>>> <%= render :partial=>"comments/comments" %><br>
>>>> </div><br>
>>>><br>
>>>> I was missing the <div>...</div> portion before. Do you have that and<br>
>>>> the _comments.erb partial in place?<br>
>>>><br>
>>>> Zhao<br>
>>>><br>
>>>> On Wed, Sep 3, 2008 at 9:37 PM, Allen Walker <<a href="mailto:auswalk@gmail.com" target="_blank">auswalk@gmail.com</a>> wrote:<br>
>>>><br>
>>>><br>
>>>>><br>
>>>>> It would sure be nice if these would work.<br>
>>>>><br>
>>>>> I have the following in my home controller:<br>
>>>>><br>
>>>>> <%= fb_board("golf_board1") %><br>
>>>>><br>
>>>>> it renders:<br>
>>>>><br>
>>>>> <fb:board xid="golf_board1" /><br>
>>>>><br>
>>>>> The discussion board shows on my page, but when I click start new<br>
>>>>> topic,<br>
>>>>> it<br>
>>>>> reloads the previous URL (default callback) and continues to display<br>
>>>>> "Start<br>
>>>>> new topic".<br>
>>>>><br>
>>>>> fb_comments does the same thing.<br>
>>>>><br>
>>>>><br>
>>>>> Btw my URL is this after clicking "start new topic"<br>
>>>>><br>
>>>>> <a href="http://apps.new.facebook.com/myapp/?fbapp_ec=751" target="_blank">http://apps.new.facebook.com/myapp/?fbapp_ec=751</a><br>
>>>>><br>
>>>>> thanks<br>
>>>>> _______________________________________________<br>
>>>>><br>
>>>>><br>
><br>
> _______________________________________________<br>
> Facebooker-talk mailing list<br>
> <a href="mailto:Facebooker-talk@rubyforge.org" target="_blank">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>
><br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">Zhao<br>
</font><div><div></div><div>_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org" target="_blank">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></div></div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><a href="http://auswalk.blogspot.com" target="_blank">http://auswalk.blogspot.com</a><br>
</div>
</blockquote></div><br></div>