Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying the news stream #59

Closed
sharataka opened this issue Nov 28, 2012 · 3 comments
Closed

Querying the news stream #59

sharataka opened this issue Nov 28, 2012 · 3 comments

Comments

@sharataka
Copy link

I can search the logged in user's news stream with:

https://graph.facebook.com/me/home?q=youtube.com&access_token=XYZ

But how do I do this with facebook-sdk? I have:

friends = graph.get_connections("me", "home")

but this doesn't search for a particular term (like "youtube.com".

@tomislater
Copy link

hmm use graph.get_object('me', 'home') ?

@sharataka
Copy link
Author

But wouldn't this still only provide data for 'home'? I would like to query a term within the 'home' feed. How would I incorporate this into the above line you provided?

@martey
Copy link
Member

martey commented Nov 28, 2012

get_connections and get_object are both for retrieving entire connections/objects from the Graph API. To filter the results, you need to use the request method:

graph.request("me/home",args={"q":"youtube.com"})

While I fully understand that this is our fault for having next to no documentation, the issue tracker is not really the best place to get technical support. Please use http://groups.google.com/group/pythonforfacebook if you have further questions, as I am closing this issue.

@martey martey closed this as completed Nov 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants