I am using fb_graph gem to post something on my wall. I am getting this 
error while using fb_graph -can't dump hash with default proc. This is the 
code -

def show
  auth = Facebook.auth.from_cookie(cookies)
  authenticate Facebook.identify(auth.user)
  redirect_to root_url
end

# handle Normal OAuth flow: start
def new 
   client = Facebook.auth(callback_facebook_url).client    
   redirect_to client.authorization_uri(
     :scope => Facebook.config[:scope]      
   )    
end

 # handle Normal OAuth flow: callback
def create
  (0..2).each do
    begin
      client = Facebook.auth(callback_facebook_url).client       
      client.authorization_code = params[:code]
      access_token = client.access_token! :client_auth_body  
      user = FbGraph::User.me(access_token).fetch 
      authenticate Facebook.identify(user)  
      redirect_to "/"
      break
    rescue Exception => e
    end
  end
end

I am getting TypeError in FacebooksController#create

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/A07ksMJzC4AJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to