1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
respond_to do |format|
       if @status.save
    begin
      if ( @auth = Authentication.find_by_provider_and_user_id('facebook',current_user.id) )
         @me = FbGraph::User.me( @auth.token) 
         @me.feed!(:message => @todo.description)
      end
    rescue
      FbGraph::Unauthorized
    end    
                format.html
                format.js
      else
                @feed_items = current_user.feed.paginate(:page => params[:page])
                format.html { render :template => "pages/home" }
                format.mobile { render :template => "pages/home" }
      end
end