[Facebooker-talk] fb_comments and fb_board not working

Allen Walker auswalk at gmail.com
Thu Sep 4 01:46:36 EDT 2008


Actually I'm not even doing that. You are internally storing you own 
comments.

I'm simply attempting to use facebooks built in servers to run my 
dicussion boards and comments via the <fb:board> and <fb:comments> code. 
It should be rather trivial and for some reason it's not working. It 
must have something to do with how facebook is reading the URL and not 
correctly mapping it to the xid.

Zhao Lu wrote:
> I haven't tried fb_board but I did get fb_comment working.  The
> instruction in the beta _book_ wasn't quite
> complete and I had to look at the source code for chapter 8 to get
> things working.  I had the same problem
> with you (or at least I think it's the same problem).  Basically I
> type some comment in the text area and click
> submit and nothing 'happens'.  When I look into the database table the
> new comment is there so what I was
> missing was to pull the comments out from the table and display them.
>
> My code structure is pretty much the same as karate poke.  I have this
> code snippet in my view:
>
> <% form_for Comment.new do %>
>   Comment on gifts: <br />
>   <%= text_area_tag :body %> <br />
>   <%= hidden_field_tag :comment_receiver, @user.id %>
>   <%= submit_tag 'Post' %>
> <% end %>
>
> <div id="all_comments">
>   <%= render :partial=>"comments/comments" %>
> </div>
>
> I was missing the <div>...</div> portion before.  Do you have that and
> the _comments.erb partial in place?
>
> Zhao
>
> On Wed, Sep 3, 2008 at 9:37 PM, Allen Walker <auswalk at gmail.com> wrote:
>   
>> It would sure be nice if these would work.
>>
>> I have the following in my home controller:
>>
>> <%= fb_board("golf_board1") %>
>>
>> it renders:
>>
>> <fb:board xid="golf_board1" />
>>
>> The discussion board shows on my page, but when I click start new topic, it
>> reloads the previous URL (default callback) and continues to display "Start
>> new topic".
>>
>> fb_comments does the same thing.
>>
>>
>> Btw my URL is this after clicking "start new topic"
>>
>> http://apps.new.facebook.com/myapp/?fbapp_ec=751
>>
>> thanks
>> _______________________________________________
>> Facebooker-talk mailing list
>> Facebooker-talk at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>>
>>     
>
>
>
>   



More information about the Facebooker-talk mailing list