Skip to content

Commit

Permalink
Merge pull request #102 from missedtheboat/master
Browse files Browse the repository at this point in the history
use latest Facebook Javascript SDK to maintain continued support
  • Loading branch information
tmort committed Oct 30, 2015
2 parents de9e0ee + d1aa896 commit c6fdba0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions socialite.js
Expand Up @@ -498,7 +498,7 @@ window.Socialite = (function(window, document, undefined)

Socialite.network('facebook', {
script: {
src : '//connect.facebook.net/{{language}}/all.js',
src : '//connect.facebook.net/{{language}}/sdk.js',
id : 'facebook-jssdk'
},
append: function(network)
Expand All @@ -512,7 +512,8 @@ window.Socialite = (function(window, document, undefined)
window.fbAsyncInit = function() {
window.FB.init({
appId: settings.appId,
xfbml: true
xfbml: true,
version: 'v2.2'
});
for (var e in events) {
if (typeof settings[e] === 'function') {
Expand Down

0 comments on commit c6fdba0

Please sign in to comment.