So I just started looking into integrating FB into my app and whipped up this little test app. I wanted to have a bare bones app without all of the bs that’s in the Hackbook demo app. Basically, it’s overly complicated for what I want.
The problem is that something I’m doing isn’t working. My app tries to authenticate with FB, but doesn’t return auth tokens. Something else that I noticed is that…
-
If I have the facebook app installed… it switches to it, shows a white loading screen for a second, then dismisses it and pops back to my app.
-
If the facebook app isn’t installed… it will open in safari and actually show the app approval window, let me login and then it pops back to my app.
Both ways fail with getting and storing the auth tokens however.
What the heck am I doing wrong? Would someone mind seeing if this code works for them?
Full source here: Deleted.
Thanks for looking.
Looks like Facebook just updated their SDK which now includes some simplified example apps. Much better than just hackbook.