I\'m struggling with the graph api for a few days now and I can\'t seem to get any further.
In my appdelegate i\'ve placed the following code within the didFinishLau
There's a lot more needed to handle Facebook responses, especially after authorization. You're not going to be able to make calls against the Facebook API immediately after the authorize
method. Please see their sample code which shows how to respond to the various events which you will need to do, most importantly the fbDidLogin
and fbDidNotLogin
ones. Only once you have a successful login should you access the Graph API.
In addition, it looks like you're trying to post a message with the Graph API. Unfortunately that's not the way to do it and a call like [facebook requestWithGraphPath:@"me/feed" andDelegate:self];
is meant for read-only use. Again, look at the above link for an example of how to use the publish_stream
permission (their code has a publishStream
example method).