Question:

Which SDK I am using? the Old or the New SDK?

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

At this moment, I will say there are 2 "generations" of SDKs, the Old and the New. (At least this applies the PHP SDK and the JavaScript SDK. This arises as Facebook has been evolving the way that developers could develop applications (either running via accessing Facebook.com, or directly accessing one's own web site) or connecting web site to Facebook.

If you are using a "JavaScript SDK", check the following:

  • If you are loading the "all.js" file, then you are using the New JavaScript SDK.

  • If you are loading the "FeatureLoader.js.php" file, then you are using the Old JavaScript SDK. Some people refer this as the Old JavaScript Client Library.

If you are using a "PHP SDK", check the following:

  • If there is only a single file "facebook.php" in your "PHP SDK", then it is the New PHP SDK.

  • If other than the file "faecbook.php", there are also files like "facebookapi_php5_restlib.php" and "jsonwrapper" folder, then you are using the "old" SDK. Most people and official document refer this as the Old PHP Client Library.

 

Note this when you are reading online document, tutorials, sample code etc (no matter it is officially from Facebook or from 3rd parties). Sometimes, there are cases where we just apply the old knowledge to the new SDKs, and that may cause troubles.

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!