It's the recommended way of doing it. Given that both the inbuilt and iphone's facebook app are closed source, I don't know how they do it.