I have an app that currently supports posting to Facebook through the feed dialog using the old Facebook SDK for iOS.
After updating to the Facebook SDK 3.1 for iOS,
You'll probably have to abstract out a common interface and implement it twice in separate source files (so the compiler never sees Facebook.h and FacebookSDK.h in the same file).