Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Facebook all.js and sdk.js

I trying to upgrade an app to the current Facebook API (v2.7), because Facebook warns that our current used API (v2.0) is deprecated. I looked in the code and found the sdk.js and changed the version property of the configuration parameter of the FB.init function to v2.7.

Then I found other FB.init calls, that uses all.js. It seems that the FB.init function of all.js doesn't need the version.

I looked at the Facebook developer page for all.js, but I can't find any information about that.

So, what is the difference between sdk.js and all.js?

like image 914
BuZZ-dEE Avatar asked Jul 19 '16 15:07

BuZZ-dEE


1 Answers

So, what is the difference between sdk.js and all.js?

all.js is the “old” version of the SDK; when API v2.0 was introduced, they changed that to sdk.js

Forget all.js existed; sdk.js is the only one you should be using.

like image 156
CBroe Avatar answered Oct 22 '22 10:10

CBroe