[Facebooker-talk] fb_comments and fb_board not working
David Clements
digidigo at gmail.com
Thu Sep 4 12:56:02 EDT 2008
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.
Dave
On Thu, Sep 4, 2008 at 10:53 AM, Allen Walker <auswalk at gmail.com> wrote:
> 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.
>
>
> On Thu, Sep 4, 2008 at 11:09 AM, David Clements <digidigo at gmail.com>wrote:
>
>> Not totally sure what your issues are but did you look at the comments
>> section on the facebooker tutorial.
>>
>> They appear to be working there, although in there simplest form.
>>
>> http://apps.new.facebook.com/facebooker_tutorial/fbml/comments
>>
>> I haven't tried the board yet though.
>>
>>
>>
>> Dave
>>
>>
>> On Thu, Sep 4, 2008 at 9:52 AM, Zhao Lu <zhao.lu.us at gmail.com> wrote:
>>
>>> Hmm that shouldn't be the case. I had to internally store the comments
>>> because I wanted to be able to search them. As far as discussion board
>>> goes, I'd really love to use the fbml rather than implementing it.
>>>
>>> Since I'm new to this whole rails thing, all I can think of is to look at
>>> the
>>> test cases (rails app should be well tested, right?). I found a bunch
>>> of tests under
>>> vendor/plugins/facebooker/test/. rails_integration_test.rb
>>> contains some test cases on comments and fb_board. I was hoping to
>>> figure
>>> out the usage of them by merely looking at the test case. I'm not sure
>>> if
>>> you've looked at those and if they're helpful to you.
>>> I figured if they aren't then it means the test coverage can be improved.
>>> So
>>> you (or facebooker users like us) could probably improve it by adding new
>>> test
>>> cases, which should also help with debugging our problems as well.
>>>
>>> Zhao
>>>
>>> On Thu, Sep 4, 2008 at 12:02 AM, Allen Walker <auswalk at gmail.com> wrote:
>>> > Sadly, to do comments I had to implement what you have done, which
>>> > theoretically is much harder than just using the built in facebook
>>> comments
>>> > tag. Now that I wish to use a discussion board, it really behooves me
>>> to
>>> > figure this out b/c a discussion board is much more advanced than just
>>> > comments.
>>> >
>>> > Zhao Lu wrote:
>>> >>
>>> >> you are ahead of me, again.
>>> >>
>>> >> On Wed, Sep 3, 2008 at 10:46 PM, Allen Walker <auswalk at gmail.com>
>>> wrote:
>>> >>
>>> >>>
>>> >>> 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
>>> >
>>>
>>>
>>>
>>> --
>>> Zhao
>>> _______________________________________________
>>> Facebooker-talk mailing list
>>> Facebooker-talk at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>>>
>>
>>
>
>
> --
> http://auswalk.blogspot.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080904/ade577ff/attachment.html>
More information about the Facebooker-talk
mailing list