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

Reading the user Wall (feeds) #5

Open
ghost opened this issue Jul 18, 2010 · 1 comment
Open

Reading the user Wall (feeds) #5

ghost opened this issue Jul 18, 2010 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 18, 2010

Hallo, I'm trying to write an application for the iPhone.
I don't know which function should I use to get the wall of the user. Which would be the equivalent of calling for example:

http://graph.facebook.com/me/feed
http://graph.facebook.com/1722181189/feed

I thought it would be something like:

GraphObject *o = [self._graph getObject:@"1722181189" withArgs:[NSDictionary dictionaryWithObjectsAndKeys:@"feed", @"feed", nil]];

But I see no point of using a Dictionary here when I want to get the feed.
Is this the correct function to get te Wall info? How am I suposed to use the Dictionary parameter?

Thanks.

@ryanscott
Copy link
Owner

What you want is something like this:

GraphObject* me = [self._graph getObject:@"me"];
NSArray* feed = [self._graph getConnections:@"feed" forObject:me.objectID];

The feed is not an object proper in the semantics of the graph, it is a connection type of an object node. In the syntax of Bamboo, this is represented by the getConnections method, which basically just calls a url with "object/connection"

I created constants for all of the valid connection types, which you can see at the bottom of GraphAPI.h...but if you know the API name, you can just as well use the string directly.

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

1 participant