<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok,<br>
I'll set up a mirror environment with the newer plugin code just as
soon as I can.<br>
For the record, this is Bebo application development I'm looking at.<br>
<br>
David Clements wrote:
<blockquote
 cite="mid:ea9161c50808130812i1de1c8a4hd011f8863ca5a46a@mail.gmail.com"
 type="cite">
  <div dir="ltr">I would love to know more about your setup so that we
can sort out the error you were seeing in the <br>
  <br>
set_profile_fbml_with_bebo_adapter<br>
  <br>
For reference this&nbsp; is&nbsp; an alias_method_chain&nbsp; method.&nbsp; <br>
  <br>
If there are general bugs with it we could remove the require
'bebo_adpater' and only load it if we detect it in the YML file.&nbsp; <br>
  <br>
Dave<br>
  <br>
  <br>
  <br>
  <div class="gmail_quote">On Wed, Aug 13, 2008 at 8:12 AM, Mike
Mangino <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:mmangino@elevatedrails.com">mmangino@elevatedrails.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,
not a lot to go off of. What does error code mean for bebo? Do they
support a discussion board in the profile? I would guess not.<br>
    <font color="#888888">
    <br>
Mike</font>
    <div>
    <div class="Wj3C7c"><br>
    <br>
On Aug 13, 2008, at 9:51 AM, Dara wrote:<br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Not very, a couple of weeks old I believe.<br>
I updated earlier this week, but cracks started to show on the
application (in set_profile_fbml_with_bebo_adapter as I recall, due to
a nil session) so I chose to revert for the current time.<br>
      <br>
Below is the response from the debug statement you suggest. I have cut
down the markup.<br>
The error goes away if I remove the &lt;fb:dialog-content&gt; tag.<br>
      <br>
I've also just found that the error also goes away again if I add the
&lt;fb:dialog-title&gt; tag, which i was missing, and so this is
perhaps what bebo is complaining about below.<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;error_response&gt;<br>
&nbsp;&lt;error_code&gt;1&lt;/error_code&gt;<br>
&nbsp;&lt;error_msg&gt;&lt;/error_msg&gt;<br>
&nbsp;&lt;request_args list="true"&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;uid&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;xxxxxxxxx&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;v&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;1.0&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;markup&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;<br>
---snip<br>
      <br>
&nbsp;&amp;lt;fb:dialog id=&amp;quot;diame&amp;quot;&amp;gt;<br>
&nbsp; &nbsp;&amp;lt;fb:dialog-content id=&amp;quot;diamecontent&amp;quot;&amp;gt;<br>
&nbsp; &nbsp; &nbsp;This is the dialog content<br>
&nbsp; &nbsp;&amp;lt;/fb:dialog-content&amp;gt;<br>
&nbsp;&amp;lt;/fb:dialog&amp;gt;<br>
      <br>
      <br>
---snip<br>
      <br>
&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;api_key&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;yyyyyyyyyyyy&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;method&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;facebook.profile.setFBML&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;call_id&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;1234567890.12345&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;session_key&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;zzzzzzzzzzzzz&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp; &nbsp;&lt;arg&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;key&gt;sig&lt;/key&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;value&gt;xxxxxyyyyyzzzzzzz&lt;/value&gt;<br>
&nbsp; &nbsp;&lt;/arg&gt;<br>
&nbsp;&lt;/request_args&gt;<br>
&lt;/error_response&gt;<br>
      <br>
      <br>
Mike Mangino wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <br>
Are you using a very recent Facebooker? We should get better error
messages now. Could you also put a debug statement in parser.rb like:<br>
        <br>
&nbsp; &nbsp;def self.parse(method, data)<br>
&nbsp; &nbsp; &nbsp;puts data.body<br>
&nbsp; &nbsp; &nbsp;Errors.process(data)<br>
&nbsp; &nbsp; &nbsp;parser = Parser::PARSERS[method]<br>
&nbsp; &nbsp; &nbsp;parser.process(<br>
&nbsp; &nbsp; &nbsp; &nbsp;data<br>
&nbsp; &nbsp; &nbsp;)<br>
&nbsp; &nbsp;end<br>
        <br>
        <br>
That will show us the actual error that is being sent.<br>
        <br>
Mike<br>
        <br>
On Aug 13, 2008, at 8:21 AM, dara wrote:<br>
        <br>
        <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is what I get from the log (was actually coming out anyway but i
was missing it off screen):<br>
          <br>
Facebooker::Session::UnknownError ():<br>
&nbsp; &nbsp;/vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process'<br>
&nbsp; &nbsp;/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'<br>
&nbsp; &nbsp;/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post'<br>
&nbsp; &nbsp;/vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post'<br>
&nbsp;
&nbsp;/vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in
`set_profile_fbml'<br>
&nbsp; &nbsp;/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in
`send_message'<br>
&nbsp; &nbsp;/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in
`method_missing'<br>
&nbsp; &nbsp;/app/controllers/welcome_controller.rb:7:in `index'<br>
cheers<br>
          <br>
Mike Mangino wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <br>
Interesting. Somehow the code is trying to render the error page inside
a publisher. That will likely cause some problems. Can you rescue the
exception in your publisher and get some additional detail about what
is going wrong?<br>
            <br>
Mike<br>
            <br>
On Aug 13, 2008, at 7:28 AM, dara wrote:<br>
            <br>
            <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
              <br>
I'm seeing the following error when trying to use an fb:dialog-content
within an fb:dialog tag.<br>
Have any of you hit and solved this already ?<br>
              <br>
ActionView::TemplateError (private method `gsub' called for {}:Hash) on
line #7 of
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:<br>
4: &nbsp; &nbsp; in &lt;%=h request.parameters['controller'].humanize
%&gt;Controller&lt;% if request.parameters['action'] %&gt;#&lt;%=h
request.parameters['action'] %&gt;&lt;% end %&gt;<br>
5: &nbsp; &lt;% end %&gt;<br>
6: &lt;/h1&gt;<br>
7: &lt;pre&gt;&lt;%=h @exception.clean_message %&gt;&lt;/pre&gt;<br>
8:<br>
9: &lt;%= render_file(@rescues_path + "/_trace.erb", false) %&gt;<br>
10:<br>
              <br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in
`clean_within'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in
`clean_message'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in
`_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in
`send'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in
`execute'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in
`send'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in
`render'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in
`render'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in
`render_template'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in
`render_file'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in
`rescue_action_locally'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in
`rescue_action'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in
`perform_action_without_caching'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action'<br>
&nbsp;
&nbsp;/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'<br>
...<br>
              <br>
              <br>
              <br>
This is within the profile, sent through a publisher, and in the
context of the bebo social networking service.<br>
              <br>
              <br>
_______________________________________________<br>
Facebooker-talk mailing list<br>
              <a moz-do-not-send="true"
 href="mailto:Facebooker-talk@rubyforge.org" target="_blank">Facebooker-talk@rubyforge.org</a><br>
              <a moz-do-not-send="true"
 href="http://rubyforge.org/mailman/listinfo/facebooker-talk"
 target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
            </blockquote>
            <br>
-- <br>
Mike Mangino<br>
            <a moz-do-not-send="true"
 href="http://www.elevatedrails.com" target="_blank">http://www.elevatedrails.com</a><br>
            <br>
            <br>
          </blockquote>
          <br>
        </blockquote>
        <br>
-- <br>
Mike Mangino<br>
        <a moz-do-not-send="true" href="http://www.elevatedrails.com"
 target="_blank">http://www.elevatedrails.com</a><br>
        <br>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
    </div>
    </div>
--
    <div class="Ih2E3d"><br>
Mike Mangino<br>
    <a moz-do-not-send="true" href="http://www.elevatedrails.com"
 target="_blank">http://www.elevatedrails.com</a><br>
    <br>
    <br>
    <br>
    </div>
_______________________________________________
    <div>
    <div class="Wj3C7c"><br>
Facebooker-talk mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Facebooker-talk@rubyforge.org" target="_blank">Facebooker-talk@rubyforge.org</a><br>
    <a moz-do-not-send="true"
 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>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

Dara Mulvihill
Catch
phone: +353.51.30.62.76
phone: +353.85.100.19.21
email: <a class="moz-txt-link-abbreviated" href="mailto:dara@catch.fm">dara@catch.fm</a>
skype: dara.om
aim/msn/yahoo: dar4l77

Catch is the registered trade name of Hash 6 Limited, a limited liability company incorporated in Ireland with a registered office at Arclabs, Carriganore, Co. Waterford, Ireland. Registration number: 400180.

</pre>
</body>
</html>