[Facebooker-talk] Admin class bug with fix

Mike Mangino mmangino at elevatedrails.com
Thu Aug 28 13:04:20 EDT 2008


Jonathan, can you fork the code on facebooker and make these changes?  
Then I can pull from you and you'll get credit for the fix.

Mike

On Aug 28, 2008, at 12:01 PM, Jonathan Otto wrote:

> And the following fields need to be added to applicationproperties.rb:
>
> :icon_url, :canvas_name, :connect_logo_url, :logo_url
>
> On Thu, Aug 28, 2008 at 11:00 AM, Jonathan Otto <jonathan.otto at gmail.com 
> > wrote:
>> Another fix:
>>
>> line 18
>>
>>    def get_app_properties(*properties)
>>      json = @session.post('facebook.admin.getAppProperties',
>> :properties => properties.to_json)
>> -      hash = JSON.parse(CGI.unescapeHTML(json))
>> +      hash = Facebooker.json_decode(CGI.unescapeHTML(json))
>>      @properties = ApplicationProperties.from_hash(hash)
>>    end
>>
>> On Thu, Aug 28, 2008 at 10:19 AM, Jonathan Otto <jonathan.otto at gmail.com 
>> > wrote:
>>> lib/facebooker/admin.rb line 9 should be changed to:
>>>
>>>    def set_app_properties(properties)
>>> -      properties.respond_to?(:to_json) ? properties.to_json :  
>>> properties
>>> +      properties = properties.respond_to?(:to_json) ?
>>> properties.to_json : properties
>>>      (@session.post 'facebook.admin.setAppProperties', :properties
>>> => properties) == '1'
>>>    end
>>>
>>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list