Joe Van Dyk
2008-Oct-17 15:37 UTC
[Facebooker-talk] Error when posting facebook.feed.publishActionOfUser
posting ''facebook.feed.publishActionOfUser'' with {:title=>"<fb:fbml> <fb:name ifcantsee=\"A Hidden User\" linked=\"true\" uid=\"579947937\" /> wrote a <a href=\"http://apps.facebook.com/dailycaption/captions/1273\">caption</a></fb:fbml>", "image_1_link"=>"http://apps.facebook.com/dailycaption/captions/1273", :body=>"<fb:fbml> \"<a href=\"http://apps.facebook.com/dailycaption/captions/1273\">I will be one with the bucket.</a>\". Think you can do better? <a href=\"http://apps.facebook.com/dailycaption/captions/new\">Write your own caption!</a> </fb:fbml>", "image_1"=>"http://farm1.static.flickr.com/177/385463169_c98233cd12.jpg"} NoMethodError: undefined method `new'' for nil:NilClass from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/parser.rb:405:in `process'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/session.rb:412:in `post'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:242:in `publish'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:114:in `publish_action'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:169:in `send_message'' from /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:259:in `method_missing'' from (irb):1 Looks like it received an unexpected error response from facebook. I should probably update the plugin, right? Joe
David Clements
2008-Oct-17 15:41 UTC
[Facebooker-talk] Error when posting facebook.feed.publishActionOfUser
I had this happen yesterday... Facebook has finally deprecated some calls and there is an error message mising.. I am not running the current facebooker code right now so I am not sure if this problem exists there or not.. I got around that exception by changing parser.rb def self.process(data) response_element = element(''error_response'', data) rescue nil if response_element hash = hashinate(response_element) puts "Got an exception #{hash[''error_code'']} || #{hash[''error_msg'']} " begin raise EXCEPTIONS[Integer(hash[''error_code''])].new(hash[''error_msg'']) rescue throw hash[''error_msg''] end end end This will uncover another error for you which will then force you to move to the the new publisher templates. Dave On Fri, Oct 17, 2008 at 9:37 AM, Joe Van Dyk <joe at pinkpucker.net> wrote:> posting ''facebook.feed.publishActionOfUser'' with {:title=>"<fb:fbml> > <fb:name ifcantsee=\"A Hidden User\" linked=\"true\" uid=\"579947937\" > /> wrote a <a href=\"http://apps.facebook.com/dailycaption/captions/1273\<http://apps.facebook.com/dailycaption/captions/1273%5C> > ">caption</a></fb:fbml>", > "image_1_link"=>"http://apps.facebook.com/dailycaption/captions/1273", > :body=>"<fb:fbml> \"<a > href=\"http://apps.facebook.com/dailycaption/captions/1273\<http://apps.facebook.com/dailycaption/captions/1273%5C>">I > will be > one with the bucket.</a>\". Think you can do better? <a > href=\"http://apps.facebook.com/dailycaption/captions/new\<http://apps.facebook.com/dailycaption/captions/new%5C>">Write > your > own caption!</a> </fb:fbml>", > "image_1"=>"http://farm1.static.flickr.com/177/385463169_c98233cd12.jpg"} > > NoMethodError: undefined method `new'' for nil:NilClass > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/parser.rb:405:in > `process'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > `parse'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in > `post'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/session.rb:412:in > `post'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:242:in > `publish'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:114:in > `publish_action'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:169:in > `send_message'' > from > /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:259:in > `method_missing'' > from (irb):1 > > > Looks like it received an unexpected error response from facebook. I > should probably update the plugin, right? > > Joe > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081017/4319728f/attachment.html>
Mike Mangino
2008-Oct-17 15:49 UTC
[Facebooker-talk] Error when posting facebook.feed.publishActionOfUser
On Oct 17, 2008, at 11:37 AM, Joe Van Dyk wrote:> posting ''facebook.feed.publishActionOfUser'' with {:title=>"<fb:fbml> > <fb:name ifcantsee=\"A Hidden User\" linked=\"true\" uid=\"579947937\" > /> wrote a <a href=\"http://apps.facebook.com/dailycaption/captions/1273 > \">caption</a></fb:fbml>", > "image_1_link"=>"http://apps.facebook.com/dailycaption/captions/1273", > :body=>"<fb:fbml> \"<a > href=\"http://apps.facebook.com/dailycaption/captions/1273\">I will be > one with the bucket.</a>\". Think you can do better? <a > href=\"http://apps.facebook.com/dailycaption/captions/new\">Write your > own caption!</a> </fb:fbml>", > "image_1"=>"http://farm1.static.flickr.com/177/385463169_c98233cd12.jpg > "} > > NoMethodError: undefined method `new'' for nil:NilClass > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/parser.rb:405:in > `process'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/parser.rb:15:in > `parse'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/service.rb:13:in > `post'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/session.rb:412:in > `post'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/models/user.rb:242:in > `publish'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/models/user.rb:114:in > `publish_action'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/rails/publisher.rb:169:in > `send_message'' > from /data/dailycaption/releases/20081017040804/vendor/plugins/ > facebooker/lib/facebooker/rails/publisher.rb:259:in > `method_missing'' > from (irb):1 > > > Looks like it received an unexpected error response from facebook. I > should probably update the plugin, right?Yep! I think new versions will give you the error text instead of this ugly error. Mike> > > Joe > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Joe Van Dyk
2008-Oct-17 21:58 UTC
[Facebooker-talk] Error when posting facebook.feed.publishActionOfUser
By "new publisher templates" -- you''re referring to what facebooker sends facebook, right? So I''d want to upgrade facebooker? Or can I just use different fbml in my publisher methods? Joe On Fri, Oct 17, 2008 at 8:41 AM, David Clements <digidigo at gmail.com> wrote:> I had this happen yesterday... Facebook has finally deprecated some calls > and there is an error message mising.. > > I am not running the current facebooker code right now so I am not sure if > this problem exists there or not.. > > > I got around that exception by changing parser.rb > > def self.process(data) > response_element = element(''error_response'', data) rescue nil > if response_element > hash = hashinate(response_element) > puts "Got an exception #{hash[''error_code'']} || #{hash[''error_msg'']} > " > begin > raise EXCEPTIONS[Integer(hash[''error_code''])].new(hash[''error_msg'']) > rescue > throw hash[''error_msg''] > end > end > end > > This will uncover another error for you which will then force you to move to > the the new publisher templates. > > > Dave > > > On Fri, Oct 17, 2008 at 9:37 AM, Joe Van Dyk <joe at pinkpucker.net> wrote: >> >> posting ''facebook.feed.publishActionOfUser'' with {:title=>"<fb:fbml> >> <fb:name ifcantsee=\"A Hidden User\" linked=\"true\" uid=\"579947937\" >> /> wrote a <a >> href=\"http://apps.facebook.com/dailycaption/captions/1273\">caption</a></fb:fbml>", >> "image_1_link"=>"http://apps.facebook.com/dailycaption/captions/1273", >> :body=>"<fb:fbml> \"<a >> href=\"http://apps.facebook.com/dailycaption/captions/1273\">I will be >> one with the bucket.</a>\". Think you can do better? <a >> href=\"http://apps.facebook.com/dailycaption/captions/new\">Write your >> own caption!</a> </fb:fbml>", >> "image_1"=>"http://farm1.static.flickr.com/177/385463169_c98233cd12.jpg"} >> >> NoMethodError: undefined method `new'' for nil:NilClass >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/parser.rb:405:in >> `process'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >> `parse'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in >> `post'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/session.rb:412:in >> `post'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:242:in >> `publish'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/models/user.rb:114:in >> `publish_action'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:169:in >> `send_message'' >> from >> /data/dailycaption/releases/20081017040804/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:259:in >> `method_missing'' >> from (irb):1 >> >> >> Looks like it received an unexpected error response from facebook. I >> should probably update the plugin, right? >> >> Joe >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > >
Joe Van Dyk
2008-Oct-17 22:13 UTC
[Facebooker-talk] Error when posting facebook.feed.publishActionOfUser
On Fri, Oct 17, 2008 at 3:07 PM, Chris Nolan.ca <chrisnolan.ca+rubyforge at gmail.com> wrote:> On Fri, Oct 17, 2008 at 17:58, Joe Van Dyk <joe at pinkpucker.net> wrote: >> By "new publisher templates" -- you''re referring to what facebooker >> sends facebook, right? So I''d want to upgrade facebooker? Or can I >> just use different fbml in my publisher methods? >> >> Joe >> > > Joe, > > Sounds like you need to get up to speed on some of the ''new'' stuff > facebook has... > Check out http://wiki.developers.facebook.com/index.php/New_Design_Integration_Guide > specifically http://wiki.developers.facebook.com/index.php/New_Design_Feed_Wall > > http://www.facebook.com/developers/#/developers/message.php?id=303 is > their after the fact announcement that they were turning it off -- try > we''ve had almost a year to get ready but... > > Chris Nolan.ca > http://pullbot.com/Yup, that''s definitely true. :D Haven''t done anything Facebook related in a while. Thanks for the pointers. Joe