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

Post To array gives a User when it should be an Application #332

Closed vmohan7 closed 11 years ago

vmohan7 commented 11 years ago

In processing this post, fbid = 26081741101_10152040782881102

The ESPN application is returned as a FbGraph::User object instead of a FbGraph::Application from calling the to method.

Also, for the tags on this post, when I call the fetch_with_class_determination method on the ESPN object, it returns a page object instead of an application object.

tmlee commented 11 years ago

Hi @vmohan7, are you pointing that

post = FbGraph::Post.fetch('26081741101_10152040782881102', access_token: ACCESS_TOKEN) post.to.last is a FbGraph::User instead of an FbGraph::Application?

nov commented 11 years ago

Thanks for your pull request, @tmlee I'll release the fix soon.

tmlee commented 11 years ago

:ok_hand: thanks @nov