nov / fb_graph

This gem doesn't support FB Graph API v2.0+. Please use fb_graph2 gem instead.
MIT License
1.04k stars 191 forks source link

user.feed!, :picture parameter apparently not working #224

Closed LucasLMartini closed 12 years ago

LucasLMartini commented 12 years ago

Can't get the :picture parameter to work in Rails 3.1.3 with users that have timeline enabled (everyone now?). Found the issue in Stack Overflow too:

http://stackoverflow.com/questions/8967377/rails-3-fb-graph-posting-to-timeline-doesnt-show-image

nov commented 12 years ago

As replied to StackOverflow, :picture is working for me..

LucasLMartini commented 12 years ago

Did you test it on Rails > 3.1? From your example it seems you're running on the Bamboo stack, not Cedar.

My test is pretty much identical, running Rails 3.1.3, and it does not work (I'm removing useless text from the call):

user.feed!( :message => "#{@entrada.usuario.nome} .....", :link => "https://www.facebook.com/......", :picture => "http://[OMITTED].herokuapp.com/assets/LOGO.JPG", :name => "---------", :description => "------" )

nov commented 12 years ago

I'm running my script on my local in ruby 1.9.2

Rails 3.1? Cedar stack? What are you saying? fb_graph is rubygem, not rails plugin or heroku addon. It doesn't require rails nor heroku.

Plus if you want let me debug, you should give me more detailed info. eg.) Graph API error messages or at least actual code, not omitted.

LucasLMartini commented 12 years ago

Oh, my bad, for some reason I presumed this was a Rails plugin. I'll send you logs in PM.

LucasLMartini commented 12 years ago

Ok, I've tried a few more tests. Apparently, this might actually be an issue with Facebook and not your code at all. That example I sent you via e-mail used a very small image; and perhaps it was getting rejected because of that.

I've since tried with a larger image for the :picture param and it went through fine; I'm closing this. Thanks!