[Facebooker-talk] fb:dialog-content

Dara dara at catch.fm
Wed Aug 13 09:51:34 EDT 2008


Not very, a couple of weeks old I believe.
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.

Below is the response from the debug statement you suggest. I have cut 
down the markup.
The error goes away if I remove the <fb:dialog-content> tag.

I've also just found that the error also goes away again if I /add/ the 
<fb:dialog-title> tag, which i was missing, and so this is perhaps what 
bebo is complaining about below.

    <?xml version="1.0" encoding="UTF-8"?>
    <error_response>
      <error_code>1</error_code>
      <error_msg></error_msg>
      <request_args list="true">
        <arg>
          <key>uid</key>
          <value>xxxxxxxxx</value>
        </arg>
        <arg>
          <key>v</key>
          <value>1.0</value>
        </arg>
        <arg>
          <key>markup</key>
          <value>
    ---snip
     
      &lt;fb:dialog id=&quot;diame&quot;&gt;
        &lt;fb:dialog-content id=&quot;diamecontent&quot;&gt;
          This is the dialog content
        &lt;/fb:dialog-content&gt;
      &lt;/fb:dialog&gt;
     

    ---snip
     
    </value>
        </arg>
        <arg>
          <key>api_key</key>
          <value>yyyyyyyyyyyy</value>
        </arg>
        <arg>
          <key>method</key>
          <value>facebook.profile.setFBML</value>
        </arg>
        <arg>
          <key>call_id</key>
          <value>1234567890.12345</value>
        </arg>
        <arg>
          <key>session_key</key>
          <value>zzzzzzzzzzzzz</value>
        </arg>
        <arg>
          <key>sig</key>
          <value>xxxxxyyyyyzzzzzzz</value>
        </arg>
      </request_args>
    </error_response>



Mike Mangino wrote:
> 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:
>
>     def self.parse(method, data)
>       puts data.body
>       Errors.process(data)
>       parser = Parser::PARSERS[method]
>       parser.process(
>         data
>       )
>     end
>
>
> That will show us the actual error that is being sent.
>
> Mike
>
> On Aug 13, 2008, at 8:21 AM, dara wrote:
>
>> This is what I get from the log (was actually coming out anyway but i 
>> was missing it off screen):
>>
>> Facebooker::Session::UnknownError ():
>>     /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process'
>>     /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'
>>     /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post'
>>     /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post'
>>     
>> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in 
>> `set_profile_fbml'
>>     
>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in 
>> `send_message'
>>     
>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in 
>> `method_missing'
>>     /app/controllers/welcome_controller.rb:7:in `index'
>> cheers
>>
>> Mike Mangino wrote:
>>>
>>> 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?
>>>
>>> Mike
>>>
>>> On Aug 13, 2008, at 7:28 AM, dara wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm seeing the following error when trying to use an 
>>>> fb:dialog-content within an fb:dialog tag.
>>>> Have any of you hit and solved this already ?
>>>>
>>>> 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: 
>>>>
>>>> 4:     in <%=h request.parameters['controller'].humanize 
>>>> %>Controller<% if request.parameters['action'] %>#<%=h 
>>>> request.parameters['action'] %><% end %>
>>>> 5:   <% end %>
>>>> 6: </h1>
>>>> 7: <pre><%=h @exception.clean_message %></pre>
>>>> 8:
>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %>
>>>> 10:
>>>>
>>>>     
>>>> /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'
>>>>     
>>>> /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'
>>>>     
>>>> /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' 
>>>>
>>>>     
>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in 
>>>> `send'
>>>>     
>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in 
>>>> `execute'
>>>>     
>>>> /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'
>>>>     
>>>> /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'
>>>>     
>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in 
>>>> `render'
>>>>     
>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in 
>>>> `render_template'
>>>>     
>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in 
>>>> `render_file'
>>>>     
>>>> /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'
>>>>     
>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in 
>>>> `rescue_action'
>>>>     
>>>> /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'
>>>>     
>>>> /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'
>>>>     
>>>> /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'
>>>> ...
>>>>
>>>>
>>>>
>>>> This is within the profile, sent through a publisher, and in the 
>>>> context of the bebo social networking service.
>>>>
>>>>
>>>> _______________________________________________
>>>> Facebooker-talk mailing list
>>>> Facebooker-talk at rubyforge.org
>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>>>
>>> -- 
>>> Mike Mangino
>>> http://www.elevatedrails.com
>>>
>>>
>>
>
> -- 
> Mike Mangino
> http://www.elevatedrails.com
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080813/dd406226/attachment-0001.html>


More information about the Facebooker-talk mailing list