[Facebooker-talk] Init sequence for a non-Rails app?

Mike Mangino mmangino at elevatedrails.com
Mon Sep 8 19:27:48 EDT 2008


I just committed a few changes that allow me to refresh a URL ref from  
irb without require rails.

Basically, you'll need to update to the latest version of the code and  
run rake package and then install the resulting 0.9.9 gem

 From your ruby application, you can run:

Facebooker.load_configuration("config/facebooker.yml")

to load the configuration. It expects a yaml file without the  
environments. So just:

api_key:
secret_key:
canvas_page_name:
callback_url:
tunnel:
   public_host_username:
   public_host:
   public_port: 4007
   local_port: 3000

Let me know how that works.

Mike

On Sep 8, 2008, at 5:21 PM, Mike Summers wrote:

> You have time that would be great, I'd really like to get this  
> working.
>
> Let me know how you want to proceed.
>
> Thanks a lot.
>
> Mike Mangino wrote:
>>
>> You may be the first person to try to use the newer version outside  
>> of Rails. I would guess that we will need to fix up the manifest to  
>> include the new files. It sounds like the initialization needs a  
>> little work too. I can definitely give you some guidance on what  
>> might need to change if you want to give it a shot.
>>
>> Mike
>>
>> On Sep 8, 2008, at 4:51 PM, Mike Summers wrote:
>>
>>> gem, yes working config/facebooker.yml (with the 0.9.5 gem)
>>>
>>> My problem maybe more fundamental... can I use the git  
>>> distribution in a non-Rails environment? It looks like we need the  
>>> git updates for the new FB profile.
>>>
>>> Thanks for your time.
>>>
>>> Mike Mangino wrote:
>>>>
>>>> Are you using a gem or a plugin?
>>>>
>>>> Do you have a config/facebooker.yml file?
>>>>
>>>> Mike
>>>>
>>>> On Sep 8, 2008, at 3:37 PM, Mike Summers wrote:
>>>>
>>>>> I'm trying to migrate from the 0.9.5 gem to the current git copy  
>>>>> and I'm getting "Could not find configuration information for  
>>>>> secret" which make me think I'm missing a init call or two.
>>>>>
>>>>> Thanks-- Mike
>>>>> _______________________________________________
>>>>> 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
>>
>>
>>
>>

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





More information about the Facebooker-talk mailing list