[Facebooker-talk] rendering images from a file upload

Allen Walker auswalk at gmail.com
Tue Aug 26 23:17:34 EDT 2008


Thank you sir. Duh ;-)

BJ Clark wrote:
> :canvas => true
>
>
> On Aug 26, 2008, at 9:02 PM, Allen Walker wrote:
>
>> After you accept the upload, how to you redirect back into the 
>> facebook canvas? My create method in my controller doesn't redirect 
>> back into apps.facebook.com/myapp/photos but rather 
>> www.myhost.com/photos:
>>
>> def create
>>   @photo = Photo.new(params[:photo])
>>   if @photo.save
>>     flash[:notice] = "Photo Saved"
>>     redirect_to photos_url
>>   else
>>     render :action => "new"
>>   end
>> end
>>
>> Ken Schroeder wrote:
>>> Yeah I had this same question more or less week or so ago I ended up 
>>> hard coding my callback_url and path in the view.  :(
>>>
>>> On Tue, Aug 26, 2008 at 1:23 AM, Allen Walker <auswalk at gmail.com 
>>> <mailto:auswalk at gmail.com>> wrote:
>>>
>>>    So i guess my question then is, how do I setup a route so that if
>>>    I do "www.myhost.com/photo/show/1
>>>    <http://www.myhost.com/photo/show/1>" it will not go thru facebook
>>>    but instead go directly to my host.
>>>
>>>
>>>    Allen Walker wrote:
>>>
>>>        I see your point now..
>>>
>>>        This is tricky. If I go to my host URL it auto redirects back
>>>        to facebook. Looks like I'm gonna have to set a route up or
>>>        something..
>>>
>>>
>>>    _______________________________________________
>>>    Facebooker-talk mailing list
>>>    Facebooker-talk at rubyforge.org <mailto:Facebooker-talk at rubyforge.org>
>>>    http://rubyforge.org/mailman/listinfo/facebooker-talk
>>>
>>>
>>
>> _______________________________________________
>> Facebooker-talk mailing list
>> Facebooker-talk at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
>



More information about the Facebooker-talk mailing list