facebookErrDomain error 10000 when calling graph api Facebook ios

前端 未结 1 1575
野的像风
野的像风 2020-12-19 17:52

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

相关标签:
1条回答
  • 2020-12-19 18:46

    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).

    0 讨论(0)
提交回复
热议问题