Change the name of the facebook library to use.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -34,13 +34,13 @@ define(function(require) { | ... | @@ -34,13 +34,13 @@ define(function(require) { |
34 | var FacebookProvider = Backbone.Model.extend({ | 34 | var FacebookProvider = Backbone.Model.extend({ |
35 | initialize: function(data, globalOptions) { | 35 | initialize: function(data, globalOptions) { |
36 | // early facebook javascript load | 36 | // early facebook javascript load |
37 | require(['facebook']); | 37 | require(['fb']); |
38 | FacebookProvider.__super__.initialize.apply(this, arguments); | 38 | FacebookProvider.__super__.initialize.apply(this, arguments); |
39 | var self = this; | 39 | var self = this; |
40 | var fbLoaded = $.Deferred(); | 40 | var fbLoaded = $.Deferred(); |
41 | var ready = attachReady(this); | 41 | var ready = attachReady(this); |
42 | attachStart(this, function() { | 42 | attachStart(this, function() { |
43 | require(['facebook'], function(FB) { | 43 | require(['fb'], function(FB) { |
44 | FB.init({ | 44 | FB.init({ |
45 | appId: globalOptions.appId, | 45 | appId: globalOptions.appId, |
46 | status: true, | 46 | status: true, | ... | ... |
-
Please register or sign in to post a comment