This issue 68 talks about an internal FB framework that could benefit you. They were wondering if publishing it made sense and they were asking for input from the community, so you might want to check it out and comment on your use case.
I don’t really know the extent of that project nor whether it will ever be open source but it might be what you’re looking for.