kontagent/facebook-sdk — pull request #3 by gaiaops (2011-11-08 19:03:48+00:00)
Title: wrap facebook instead of extending

If you create kontagentfacebook php sdk as a wrapper around the facebook object, it allows developers to extend the BaseFacebook object on their own and modify the behavior there, instead of touching your class. Then they can just inject their facebook object into KontagentFacebook to add tracking.

I have only done preliminary tests, but it seems to work and it only required a few changes without altering any of your core logic.