ncla
ncla

Reputation: 811

Facebook errors when using multiple .js api

I have two Facebook API on my webpage, one is https://connect.facebook.net/en_US/all.js and the other one is http://static.ak.fbcdn.net/connect.php/js/FB.Share

Now if I have both of these, then there is error: FB.init is not a function

Without the FB.Share API, everything is fine.

EDIT: .js file order caused the error. Now there is "e.root is undefined" error.

EDIT2: fixed it.

Upvotes: 2

Views: 396

Answers (2)

Saket
Saket

Reputation: 46137

I have never found anything missing from all.js, so that should suffice. What are you looking for in the second library?

There must be conflicting items across the two scripts that is causing a failure when ran in tandem.

Upvotes: 2

genesis
genesis

Reputation: 50976

Just delete that second, first one covers everything

Upvotes: 0

Related Questions