Im just starting out with the Facebook SDK for iOS and checked out the documentation and other help thoroughly but can’t be successful.
I have started a new view based app and authorised just as recommended in the docs. Everytime I start the app its switches to the Facebook app (which I have installed on my iPhone) and says already authorised, press okay. How can I stop it repeatedly doing this?
I also have tried posting to Facebook without a dialog. The console tells me a request is made but then a error occurs (doesn’t crash but the didFailWithError tells me).
Anyway I haven’t posted any of my code as it seems relatively simple so if there is someone who knows how to do this I would massively appreciate any help, and possibly even a code sample.
Thanks.
You’re missing a key point in your delegate, you have to save the session data yourself
And then when you initialize facebook you would do the following
And finally, if you want to post without a dialog you would do this
I hope that helps