arsduo / koala

A lightweight Facebook library supporting the Graph, Marketing, and Atlas APIs, realtime updates, test users, and OAuth.
http://developers.facebook.com/
MIT License
3.56k stars 467 forks source link

Get_connections returns posts from a random feed sometimes #257

Closed bodrovis closed 11 years ago

bodrovis commented 11 years ago

Hello.

I use "get_connections" method to fetch posts from a news feed. Generally it works fine, but with some IDs and names it works quite strange. Here is my piece of code:

oauth = Koala::Facebook::OAuth.new(CONFIG[:koala_token], CONFIG[:koala_secret])

token = oauth.get_app_access_token

graph = Koala::Facebook::API.new(token)

mess = graph.get_connections(channel.to_s, "feed") #channel can be name of ID of the page

And then i display messages from the "mess" variable. For example, when i use "google" or "chanel" as a channel name, the posts from theirs feeds are displayed normally.

But when i use "walmart" the posts from walmart's feed (which is located here: http://www.facebook.com/walmart/feed) are not displayed - only some random posts and status updates by other people. I also tried the ID of the Walmart page (got it from this link: http://graph.facebook.com/walmart), but all the same. The same thing happens when using "tesco" as a channel name.

I have to mention that i need only the posts, that are published BY the Walmart (not the comments on their wall by other people).

Does anyone know why is this happening? Maybe Walmart has some strict privacy settings on their feed?

bodrovis commented 11 years ago

Oh, i think, that i have found a solution. I used "posts" instead of "feed" and managed to get the right ones.