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

A lot of "can't convert Symbol into Integer" errors have occurred lately #352

Closed skogsmaskin closed 10 years ago

skogsmaskin commented 10 years ago

Hi!

I wonder if Facebook changed something in their data recently? I get a more and more "can't convert Symbol into Integer" exceptions from fb_graph.

Backtraces:

fb_graph-2.4.9/lib/fb_graph/event.rb:41→ []
fb_graph-2.4.9/lib/fb_graph/event.rb:41→ initialize
fb_graph-2.4.9/lib/fb_graph/node.rb:20→ new
fb_graph-2.4.9/lib/fb_graph/node.rb:20→ fetch
fb_graph-2.4.9/lib/fb_graph/node.rb:24→ fetch
fb_graph-2.7.10/lib/fb_graph/event.rb:41→ []
fb_graph-2.7.10/lib/fb_graph/event.rb:41→ initialize
fb_graph-2.7.10/lib/fb_graph/post.rb:26→ new
fb_graph-2.7.10/lib/fb_graph/post.rb:26→ block in initialize
fb_graph-2.7.10/lib/fb_graph/post.rb:22→ each
fb_graph-2.7.10/lib/fb_graph/post.rb:22→ initialize
fb_graph-2.7.10/lib/fb_graph/connections/feed.rb:7→ new
fb_graph-2.7.10/lib/fb_graph/connections/feed.rb:7→ block in feed
fb_graph-2.7.10/lib/fb_graph/connections/feed.rb:6→ map!
fb_graph-2.7.10/lib/fb_graph/connections/feed.rb:6→ feed

Try this for example (change to your own access token):

access_token = "youraccesstoken"
page = FbGraph::Page.new("196394010342", :access_token => access_token).fetch()
page.feed

Anybody else get these exceptions lately?

nov commented 10 years ago

Seems that they started to return [] as venue in Event object, instead of JSON object. I'll look at this issue deeper in this weekend.