pitchtarget / ember-cli-facebook-js-sdk Goto Github PK
View Code? Open in Web Editor NEWSimple Facebook SDK for Javascript addon for your Ember CLI app.
License: MIT License
Simple Facebook SDK for Javascript addon for your Ember CLI app.
License: MIT License
Failed to load resource: net::ERR_FILE_NOT_FOUND
The README does not specify how to initialize the Facebook JS SDK.
I had originally set up facebook init in our application route as per the README:
beforeModel() {
return this.get('fb').FBInit();
}
But my client noticed that our site now does no work in Firefox private mode, which I realized was a result of adding this library. Firefox is blocking the Facebok init.. So I have changed our code to this:
beforeModel() {
this.get('fb').FBInit().then(ok=>ok).catch(()=>true);
}
This at least lets the bulk of our site load, but we have a remaining issue of Facebook sharing buttons that do not work in Firefox private mode.
I'm posting this issue as a general heads up, and wondering if this library has a way to check on the status of FBInit, or if anyone has any advice on how to work around this –– eg so that I can not show facebook share buttons if they are not going to work when clicked...
it would be cool to use this library as a wrapper for an already initalized FB raw library.
My usecase is the fb sdk that is injected by torii after successful auth.
Hey,
fthank you for your work!
But..
how to use scope like the original FB SDK inside of a controller?
example:
FB.login(function(response) {
// handle the response
}, {scope: 'email,user_likes,manage_pages'});
Thank you for your answer,
Greetz jakope
@bradcrawford I'm opening an issue here to document the changes you did. Please, let me know if you would like to do it.
Currently if we run fast boot with this module included the following error occurs:
Error while processing route: main Cannot read property 'getScript' of undefined TypeError: Cannot read property 'getScript' of undefined
at FBInit.fbInitPromise._ember.default.RSVP.Promise.then.window.fbAsyncInit (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:73010:28)
at initializePromise (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:69123:7)
at new Promise (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:69611:33)
at Class.FBInit (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:73005:28)
at Class.beforeModel (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/stage-360-preregistration.js:577:26)
at applyHook (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:66590:28)
at C.runSharedModelHook (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:67209:18)
at C.runBeforeModelHook (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:67182:17)
at /home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:66446:15
at tryCatch (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:69073:14)
at invokeCallback (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:69088:15)
at publish (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:69056:9)
at /home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:48960:16
at invokeWithOnError (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:10889:16)
at Queue.flush (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:10948:9)
at DeferredActionQueues.flush (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:11072:15)
at Backburner.end (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:11142:23)
at Timeout._onTimeout (/home/ryan/Dev/Projects/stage-360-preregistration/dist/fastboot/vendor.js:11708:16)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
Is this the facebook sdk assuming its in a browser or is this the module making the call to getScript
?
I get this when trying to import the addon in an initializer:
Uncaught Error: Could not find module `ember-cli-facebook-js-sdk/fb` imported from `rugby-ember/initializers/fb-sdk`
Facebook's sdk.js
is loaded with a constant URL, unexposed to configuration.
Hi there,
First, thanks for making this addon! I'm just getting started with it, and I'm seeing the following error after I initialize the app:
ember.debug.js:19155 TypeError: Cannot set property 'hasRun' of undefined
at fb.js:37
My application/route.js file has the same code as in the README for calling FBInit()
.
It looks like on line 26 of the service, Ember.run(null, resolve);
obliterates window.fbAsyncInit
somehow. Any ideas on what might have gone wrong? I'm using ember 2.8
When I remove the return
keyword in the recommended application route beforeModel hook, my app renders. When I keep this return
keyword in. The app fails to render, giving no errors.
application route example code:
import Ember from 'ember';
export default Ember.Route.extend({
fb: Ember.inject.service(),
beforeModel() {
return this.get('fb').FBInit();
}
})
These are all the console logs for the fail case:
ember.debug.js:6737DEBUG: -------------------------------
ember.debug.js:6737DEBUG: Ember : 2.7.3
ember.debug.js:6737DEBUG: Ember Data : 2.8.0
ember.debug.js:6737DEBUG: jQuery : 2.2.4
ember.debug.js:6737DEBUG: -------------------------------
resolver.js:323[ ] -view-registry:main ........................................ ember-homepage/main/-view-registry
resolver.js:323[ ] -view-registry:main ........................................ undefined
resolver.js:323[ ] -view-registry:main ........................................ ember-homepage/-view-registry
resolver.js:323[ ] -view-registry:main ........................................ ember-homepage/-view-registrys/main
resolver.js:323[ ] -view-registry:main ........................................ undefined
resolver.js:323[ ] service:store .............................................. ember-homepage/store/service
2resolver.js:323[ ] service:store .............................................. undefined
resolver.js:323[ ] service:store .............................................. ember-homepage/services/store
resolver.js:323[ ] service:store .............................................. undefined
resolver.js:323[ ] service:store .............................................. ember-homepage/store/service
2resolver.js:323 [ ] service:store .............................................. undefined
resolver.js:323 [ ] service:store .............................................. ember-homepage/services/store
resolver.js:323 [ ] service:store .............................................. undefined
resolver.js:323 [ ] event_dispatcher:main ...................................... ember-homepage/main/event_dispatcher
resolver.js:323 [ ] event_dispatcher:main ...................................... undefined
resolver.js:323 [ ] event_dispatcher:main ...................................... ember-homepage/event_dispatcher
resolver.js:323 [ ] event_dispatcher:main ...................................... ember-homepage/event_dispatchers/main
resolver.js:323 [ ] event_dispatcher:main ...................................... undefined
resolver.js:323 [ ] router:main ................................................ ember-homepage/main/router
resolver.js:323 [ ] router:main ................................................ ember-homepage/router
resolver.js:323 [✓] router:main ................................................ ember-homepage/router
resolver.js:323 [✓] router:main ................................................ ember-homepage/router
resolver.js:323 [ ] -bucket-cache:main-212173758124 ............................ ember-homepage/main-212173758124/-bucket-cache
2resolver.js:323 [ ] -bucket-cache:main-212173758124 ............................ undefined
resolver.js:323 [ ] -bucket-cache:main-212173758124 ............................ ember-homepage/-bucket-caches/main-212173758124
resolver.js:323 [ ] -bucket-cache:main-212173758124 ............................ undefined
resolver.js:323 [ ] application:main ........................................... ember-homepage/main/application
resolver.js:323 [ ] application:main ........................................... undefined
resolver.js:323 [ ] application:main ........................................... ember-homepage/application
resolver.js:323 [ ] application:main ........................................... ember-homepage/applications/main
resolver.js:323 [ ] application:main ........................................... undefined
resolver.js:323 [ ] location:auto .............................................. ember-homepage/auto/location
2resolver.js:323 [ ] location:auto .............................................. undefined
resolver.js:323 [ ] location:auto .............................................. ember-homepage/locations/auto
resolver.js:323 [ ] location:auto .............................................. undefined
resolver.js:323 [ ] location:history ........................................... ember-homepage/history/location
2resolver.js:323 [ ] location:history ........................................... undefined
resolver.js:323 [ ] location:history ........................................... ember-homepage/locations/history
resolver.js:323 [ ] location:history ........................................... undefined
resolver.js:323 [ ] route:basic ................................................ ember-homepage/basic/route
2resolver.js:323 [ ] route:basic ................................................ undefined
resolver.js:323 [ ] route:basic ................................................ ember-homepage/routes/basic
resolver.js:323 [ ] route:basic ................................................ ember-homepage/basic/route
2resolver.js:323 [ ] route:basic ................................................ undefined
resolver.js:323 [ ] route:basic ................................................ ember-homepage/routes/basic
resolver.js:323 [ ] route:basic ................................................ undefined
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/-outlet/template
2resolver.js:323 [ ] template:-outlet ........................................... undefined
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/templates/-outlet
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/-outlet/template
2resolver.js:323 [ ] template:-outlet ........................................... undefined
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/templates/-outlet
resolver.js:323 [ ] template:-outlet ........................................... undefined
ember.debug.js:51605 Attempting URL transition to /
resolver.js:323 [ ] route:application .......................................... ember-homepage/application/route
2resolver.js:323 [ ] route:application .......................................... ember-homepage/routes/application
resolver.js:323 [✓] route:application .......................................... ember-homepage/routes/application
resolver.js:323 [✓] route:application .......................................... ember-homepage/routes/application
resolver.js:323 [ ] service:fb ................................................. ember-homepage/fb/service
2resolver.js:323 [ ] service:fb ................................................. ember-homepage/services/fb
resolver.js:323 [✓] service:fb ................................................. ember-homepage/services/fb
resolver.js:323 [✓] service:fb ................................................. ember-homepage/services/fb
resolver.js:323 [ ] route:index ................................................ ember-homepage/index/route
2resolver.js:323 [ ] route:index ................................................ undefined
resolver.js:323 [ ] route:index ................................................ ember-homepage/routes/index
resolver.js:323 [ ] route:index ................................................ ember-homepage/index/route
2resolver.js:323 [ ] route:index ................................................ undefined
resolver.js:323 [ ] route:index ................................................ ember-homepage/routes/index
resolver.js:323 [ ] route:index ................................................ undefined
ember.debug.js:6750 generated -> route:index Object {fullName: "route:index"}
ember.debug.js:29942 Preparing to transition from '' to 'index'
ember.debug.js:51602 Transition #0: application: calling beforeModel hook
resolver.js:323 [ ] config:environment ......................................... ember-homepage/environment/config
2resolver.js:323 [ ] config:environment ......................................... ember-homepage/config/environment
resolver.js:323 [✓] config:environment ......................................... ember-homepage/config/environment
resolver.js:323 [✓] config:environment ......................................... ember-homepage/config/environment
resolver.js:323 [ ] template:application-loading ............................... ember-homepage/application-loading/template
2resolver.js:323 [ ] template:application-loading ............................... undefined
resolver.js:323 [ ] template:application-loading ............................... ember-homepage/templates/application-loading
resolver.js:323 [ ] template:application-loading ............................... ember-homepage/application-loading/template
2resolver.js:323 [ ] template:application-loading ............................... undefined
resolver.js:323 [ ] template:application-loading ............................... ember-homepage/templates/application-loading
resolver.js:323 [ ] template:application-loading ............................... undefined
resolver.js:323 [ ] route:application-loading .................................. ember-homepage/application-loading/route
2resolver.js:323 [ ] route:application-loading .................................. undefined
resolver.js:323 [ ] route:application-loading .................................. ember-homepage/routes/application-loading
resolver.js:323 [ ] route:application-loading .................................. ember-homepage/application-loading/route
2resolver.js:323 [ ] route:application-loading .................................. undefined
resolver.js:323 [ ] route:application-loading .................................. ember-homepage/routes/application-loading
resolver.js:323 [ ] route:application-loading .................................. undefined
These are all my logs from the successful case:
DEBUG: -------------------------------
ember.debug.js:6737DEBUG: Ember : 2.7.3
ember.debug.js:6737DEBUG: Ember Data : 2.8.0
ember.debug.js:6737DEBUG: jQuery : 2.2.4
ember.debug.js:6737DEBUG: -------------------------------
resolver.js:323[ ] -view-registry:main ........................................ ember-homepage/main/-view-registry
resolver.js:323[ ] -view-registry:main ........................................ undefined
resolver.js:323[ ] -view-registry:main ........................................ ember-homepage/-view-registry
resolver.js:323[ ] -view-registry:main ........................................ ember-homepage/-view-registrys/main
resolver.js:323[ ] -view-registry:main ........................................ undefined
resolver.js:323 [ ] service:store .............................................. ember-homepage/store/service
2resolver.js:323 [ ] service:store .............................................. undefined
resolver.js:323 [ ] service:store .............................................. ember-homepage/services/store
resolver.js:323 [ ] service:store .............................................. undefined
resolver.js:323 [ ] service:store .............................................. ember-homepage/store/service
2resolver.js:323 [ ] service:store .............................................. undefined
resolver.js:323 [ ] service:store .............................................. ember-homepage/services/store
resolver.js:323 [ ] service:store .............................................. undefined
resolver.js:323 [ ] event_dispatcher:main ...................................... ember-homepage/main/event_dispatcher
resolver.js:323 [ ] event_dispatcher:main ...................................... undefined
resolver.js:323 [ ] event_dispatcher:main ...................................... ember-homepage/event_dispatcher
resolver.js:323 [ ] event_dispatcher:main ...................................... ember-homepage/event_dispatchers/main
resolver.js:323 [ ] event_dispatcher:main ...................................... undefined
resolver.js:323 [ ] router:main ................................................ ember-homepage/main/router
resolver.js:323 [ ] router:main ................................................ ember-homepage/router
resolver.js:323 [✓] router:main ................................................ ember-homepage/router
resolver.js:323 [✓] router:main ................................................ ember-homepage/router
resolver.js:323 [ ] -bucket-cache:main-1463821437968 ........................... ember-homepage/main-1463821437968/-bucket-cache
2resolver.js:323 [ ] -bucket-cache:main-1463821437968 ........................... undefined
resolver.js:323 [ ] -bucket-cache:main-1463821437968 ........................... ember-homepage/-bucket-caches/main-1463821437968
resolver.js:323 [ ] -bucket-cache:main-1463821437968 ........................... undefined
resolver.js:323 [ ] application:main ........................................... ember-homepage/main/application
resolver.js:323 [ ] application:main ........................................... undefined
resolver.js:323 [ ] application:main ........................................... ember-homepage/application
resolver.js:323 [ ] application:main ........................................... ember-homepage/applications/main
resolver.js:323 [ ] application:main ........................................... undefined
resolver.js:323 [ ] location:auto .............................................. ember-homepage/auto/location
2resolver.js:323 [ ] location:auto .............................................. undefined
resolver.js:323 [ ] location:auto .............................................. ember-homepage/locations/auto
resolver.js:323 [ ] location:auto .............................................. undefined
resolver.js:323 [ ] location:history ........................................... ember-homepage/history/location
2resolver.js:323 [ ] location:history ........................................... undefined
resolver.js:323 [ ] location:history ........................................... ember-homepage/locations/history
resolver.js:323 [ ] location:history ........................................... undefined
resolver.js:323 [ ] route:basic ................................................ ember-homepage/basic/route
2resolver.js:323 [ ] route:basic ................................................ undefined
resolver.js:323 [ ] route:basic ................................................ ember-homepage/routes/basic
resolver.js:323 [ ] route:basic ................................................ ember-homepage/basic/route
2resolver.js:323 [ ] route:basic ................................................ undefined
resolver.js:323 [ ] route:basic ................................................ ember-homepage/routes/basic
resolver.js:323 [ ] route:basic ................................................ undefined
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/-outlet/template
2resolver.js:323 [ ] template:-outlet ........................................... undefined
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/templates/-outlet
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/-outlet/template
2resolver.js:323 [ ] template:-outlet ........................................... undefined
resolver.js:323 [ ] template:-outlet ........................................... ember-homepage/templates/-outlet
resolver.js:323 [ ] template:-outlet ........................................... undefined
ember.debug.js:51605 Attempting URL transition to /
resolver.js:323 [ ] route:application .......................................... ember-homepage/application/route
2resolver.js:323 [ ] route:application .......................................... ember-homepage/routes/application
resolver.js:323 [✓] route:application .......................................... ember-homepage/routes/application
resolver.js:323 [✓] route:application .......................................... ember-homepage/routes/application
resolver.js:323 [ ] service:fb ................................................. ember-homepage/fb/service
2resolver.js:323 [ ] service:fb ................................................. ember-homepage/services/fb
resolver.js:323 [✓] service:fb ................................................. ember-homepage/services/fb
resolver.js:323 [✓] service:fb ................................................. ember-homepage/services/fb
resolver.js:323 [ ] route:index ................................................ ember-homepage/index/route
2resolver.js:323 [ ] route:index ................................................ undefined
resolver.js:323 [ ] route:index ................................................ ember-homepage/routes/index
resolver.js:323 [ ] route:index ................................................ ember-homepage/index/route
2resolver.js:323 [ ] route:index ................................................ undefined
resolver.js:323 [ ] route:index ................................................ ember-homepage/routes/index
resolver.js:323 [ ] route:index ................................................ undefined
ember.debug.js:6750 generated -> route:index Object {fullName: "route:index"}
ember.debug.js:29942 Preparing to transition from '' to 'index'
ember.debug.js:51602 Transition #0: application: calling beforeModel hook
resolver.js:323 [ ] config:environment ......................................... ember-homepage/environment/config
2resolver.js:323 [ ] config:environment ......................................... ember-homepage/config/environment
resolver.js:323 [✓] config:environment ......................................... ember-homepage/config/environment
resolver.js:323 [✓] config:environment ......................................... ember-homepage/config/environment
ember.debug.js:51602 Transition #0: application: calling deserialize hook
resolver.js:323 [ ] controller:application ..................................... ember-homepage/application/controller
2resolver.js:323 [ ] controller:application ..................................... ember-homepage/controllers/application
resolver.js:323 [✓] controller:application ..................................... ember-homepage/controllers/application
resolver.js:323 [✓] controller:application ..................................... ember-homepage/controllers/application
resolver.js:323 [ ] controller:index ........................................... ember-homepage/index/controller
2resolver.js:323 [ ] controller:index ........................................... undefined
resolver.js:323 [ ] controller:index ........................................... ember-homepage/controllers/index
resolver.js:323 [ ] controller:index ........................................... ember-homepage/index/controller
2resolver.js:323 [ ] controller:index ........................................... undefined
resolver.js:323 [ ] controller:index ........................................... ember-homepage/controllers/index
resolver.js:323 [ ] controller:index ........................................... undefined
ember.debug.js:51602 Transition #0: application: calling afterModel hook
ember.debug.js:51602 Transition #0: index: calling beforeModel hook
ember.debug.js:51602 Transition #0: index: calling deserialize hook
ember.debug.js:51602 Transition #0: index: calling afterModel hook
ember.debug.js:51602 Transition #0: Resolved all models on destination route; finalizing transition.
resolver.js:323 [ ] view:application ........................................... ember-homepage/application/view
2resolver.js:323 [ ] view:application ........................................... undefined
resolver.js:323 [ ] view:application ........................................... ember-homepage/views/application
resolver.js:323 [ ] view:application ........................................... ember-homepage/application/view
2resolver.js:323 [ ] view:application ........................................... undefined
resolver.js:323 [ ] view:application ........................................... ember-homepage/views/application
resolver.js:323 [ ] view:application ........................................... undefined
resolver.js:323 [ ] template:application ....................................... ember-homepage/application/template
2resolver.js:323 [ ] template:application ....................................... undefined
resolver.js:323 [ ] template:application ....................................... ember-homepage/templates/application
resolver.js:323 [ ] template:application ....................................... ember-homepage/application/template
2resolver.js:323 [ ] template:application ....................................... undefined
resolver.js:323 [ ] template:application ....................................... ember-homepage/templates/application
resolver.js:323 [ ] template:application ....................................... undefined
ember.debug.js:6750 Could not find "application" template or view. Nothing will be rendered Object {fullName: "template:application"}
resolver.js:323 [ ] controller:basic ........................................... ember-homepage/basic/controller
2resolver.js:323 [ ] controller:basic ........................................... undefined
resolver.js:323 [ ] controller:basic ........................................... ember-homepage/controllers/basic
resolver.js:323 [ ] controller:basic ........................................... ember-homepage/basic/controller
2resolver.js:323 [ ] controller:basic ........................................... undefined
resolver.js:323 [ ] controller:basic ........................................... ember-homepage/controllers/basic
resolver.js:323 [ ] controller:basic ........................................... undefined
ember.debug.js:6750 generated -> controller:index Object {fullName: "controller:index"}
resolver.js:323 [ ] view:index ................................................. ember-homepage/index/view
2resolver.js:323 [ ] view:index ................................................. undefined
resolver.js:323 [ ] view:index ................................................. ember-homepage/views/index
resolver.js:323 [ ] view:index ................................................. ember-homepage/index/view
2resolver.js:323 [ ] view:index ................................................. undefined
resolver.js:323 [ ] view:index ................................................. ember-homepage/views/index
resolver.js:323 [ ] view:index ................................................. undefined
resolver.js:323 [✓] template:index ............................................. ember-homepage/index/template
resolver.js:323 [✓] template:index ............................................. ember-homepage/index/template
ember.debug.js:29888 Transitioned into 'index'
ember.debug.js:51602 Transition #0: TRANSITION COMPLETE.
resolver.js:323 [ ] view:-outlet ............................................... ember-homepage/-outlet/view
2resolver.js:323 [ ] view:-outlet ............................................... undefined
resolver.js:323 [ ] view:-outlet ............................................... ember-homepage/views/-outlet
resolver.js:323 [ ] view:-outlet ............................................... ember-homepage/-outlet/view
2resolver.js:323 [ ] view:-outlet ............................................... undefined
resolver.js:323 [ ] view:-outlet ............................................... ember-homepage/views/-outlet
resolver.js:323 [ ] view:-outlet ............................................... undefined
resolver.js:323 [ ] renderer:-dom .............................................. ember-homepage/-dom/renderer
2resolver.js:323 [ ] renderer:-dom .............................................. undefined
resolver.js:323 [ ] renderer:-dom .............................................. ember-homepage/renderers/-dom
resolver.js:323 [ ] renderer:-dom .............................................. undefined
resolver.js:323 [ ] service:-dom-helper ........................................ ember-homepage/-dom-helper/service
2resolver.js:323 [ ] service:-dom-helper ........................................ undefined
resolver.js:323 [ ] service:-dom-helper ........................................ ember-homepage/services/-dom-helper
resolver.js:323 [ ] service:-dom-helper ........................................ undefined
resolver.js:323 [ ] view:toplevel .............................................. ember-homepage/toplevel/view
2resolver.js:323 [ ] view:toplevel .............................................. undefined
resolver.js:323 [ ] view:toplevel .............................................. ember-homepage/views/toplevel
resolver.js:323 [ ] view:toplevel .............................................. ember-homepage/toplevel/view
2resolver.js:323 [ ] view:toplevel .............................................. undefined
resolver.js:323 [ ] view:toplevel .............................................. ember-homepage/views/toplevel
resolver.js:323 [ ] view:toplevel .............................................. undefined
ember.debug.js:6750 Rendering application with ember-homepage@view:toplevel: Object {fullName: "view:application"}
resolver.js:323 [ ] component:chat-interface-pod ............................... ember-homepage/chat-interface-pod/component
resolver.js:323 [✓] component:chat-interface-pod ............................... ember-homepage/components/chat-interface-pod/component
resolver.js:323 [✓] component:chat-interface-pod ............................... ember-homepage/components/chat-interface-pod/component
resolver.js:323 [ ] template:components/chat-interface-pod ..................... ember-homepage/chat-interface-pod/template
resolver.js:323 [ ] template:components/chat-interface-pod ..................... ember-homepage/components/chat-interface-pod/template
resolver.js:323 [ ] template:components/chat-interface-pod ..................... undefined
resolver.js:323 [ ] template:components/chat-interface-pod ..................... ember-homepage/templates/components/chat-interface-pod
resolver.js:323 [ ] template:components/chat-interface-pod ..................... ember-homepage/chat-interface-pod/template
resolver.js:323 [ ] template:components/chat-interface-pod ..................... ember-homepage/components/chat-interface-pod/template
resolver.js:323 [ ] template:components/chat-interface-pod ..................... undefined
resolver.js:323 [ ] template:components/chat-interface-pod ..................... ember-homepage/templates/components/chat-interface-pod
resolver.js:323 [ ] template:components/chat-interface-pod ..................... undefined
resolver.js:323 [ ] service:redux .............................................. ember-homepage/redux/service
2resolver.js:323 [ ] service:redux .............................................. ember-homepage/services/redux
resolver.js:323 [✓] service:redux .............................................. ember-homepage/services/redux
resolver.js:323 [✓] service:redux .............................................. ember-homepage/services/redux
index.js:12 reducing next state from state:
[]
action:
Object {type: "@@redux/INIT"}
index.js:31 unhandled action.type: "@@redux/INIT". State unchagned.
index.js:12 reducing next state from state:
[]
action:
Object {type: "@@redux/PROBE_UNKNOWN_ACTION_v.s.h.8.q.j.h.t.c.h.q.s.3.q.2.2.c.s.o.r"}
index.js:31 unhandled action.type: "@@redux/PROBE_UNKNOWN_ACTION_v.s.h.8.q.j.h.t.c.h.q.s.3.q.2.2.c.s.o.r". State unchagned.
index.js:12 reducing next state from state:
[]
action:
Object {type: "@@INIT"}
index.js:31 unhandled action.type: "@@INIT". State unchagned.
component.js:25 stateToComputed state Object {messages: Array[0]}
component.js:25 stateToComputed state Object {messages: Array[0]}
ember.debug.js:10599 exampleVar foo
ember.debug.js:10599 chat-interface-pod rendering:
component.js:25 stateToComputed state Object {messages: Array[0]}
ember.debug.js:10599 messages: []
ember.debug.js:10599 in mode: undefined
component.js:36 this.get(mode) undefined
component.js:5 mainRecursiveNewMessage
index.js:12 reducing next state from state:
[__ember_meta__: Meta]
action:
Object {type: "newMessage", message: Object}
index.js:36 new state of application: [Object]
ember.debug.js:6568 DEPRECATION: A property of <ember-homepage@view:-outlet::ember342> was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation. [deprecation id: ember-views.dispatching-modify-property]
at logDeprecationStackTrace (http://localhost:4200/assets/vendor.js:16677:19)
at HANDLERS.(anonymous function) (http://localhost:4200/assets/vendor.js:16787:7)
at raiseOnDeprecation (http://localhost:4200/assets/vendor.js:16707:12)
at HANDLERS.(anonymous function) (http://localhost:4200/assets/vendor.js:16787:7)
at invoke (http://localhost:4200/assets/vendor.js:16803:7)
at deprecate (http://localhost:4200/assets/vendor.js:16771:32)
at Object.deprecate (http://localhost:4200/assets/vendor.js:29636:37)
at Class.exports.default._emberMetalMixin.Mixin.create._Mixin$create.scheduleRevalidate (http://localhost:4200/assets/vendor.js:54121:22)
at http://localhost:4200/assets/vendor.js:27887:32
ember.debug.js:6568 DEPRECATION: A property of <ember-homepage@view:-outlet::ember342> was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation. [deprecation id: ember-views.dispatching-modify-property]
at logDeprecationStackTrace (http://localhost:4200/assets/vendor.js:16677:19)
at HANDLERS.(anonymous function) (http://localhost:4200/assets/vendor.js:16787:7)
at raiseOnDeprecation (http://localhost:4200/assets/vendor.js:16707:12)
at HANDLERS.(anonymous function) (http://localhost:4200/assets/vendor.js:16787:7)
at invoke (http://localhost:4200/assets/vendor.js:16803:7)
at deprecate (http://localhost:4200/assets/vendor.js:16771:32)
at Object.deprecate (http://localhost:4200/assets/vendor.js:29636:37)
at Class.exports.default._emberMetalMixin.Mixin.create._Mixin$create.scheduleRevalidate (http://localhost:4200/assets/vendor.js:54121:22)
at http://localhost:4200/assets/vendor.js:27887:32
ember.debug.js:6568 DEPRECATION: A property of <ember-homepage@view:-outlet::ember342> was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation. [deprecation id: ember-views.dispatching-modify-property]
at logDeprecationStackTrace (http://localhost:4200/assets/vendor.js:16677:19)
at HANDLERS.(anonymous function) (http://localhost:4200/assets/vendor.js:16787:7)
at raiseOnDeprecation (http://localhost:4200/assets/vendor.js:16707:12)
at HANDLERS.(anonymous function) (http://localhost:4200/assets/vendor.js:16787:7)
at invoke (http://localhost:4200/assets/vendor.js:16803:7)
at deprecate (http://localhost:4200/assets/vendor.js:16771:32)
at Object.deprecate (http://localhost:4200/assets/vendor.js:29636:37)
at Class.exports.default._emberMetalMixin.Mixin.create._Mixin$create.scheduleRevalidate (http://localhost:4200/assets/vendor.js:54121:22)
at http://localhost:4200/assets/vendor.js:27887:32
component.js:39 this.send('startDemoChat') undefined
component.js:25 stateToComputed state Object {messages: Array[1]}
ember.debug.js:10599 exampleVar foo
component.js:25 stateToComputed state Object {messages: Array[1]}
ember.debug.js:10599 messages: [Object]
resolver.js:323 [ ] component:liquid-bind ...................................... ember-homepage/liquid-bind/component
resolver.js:323 [ ] component:liquid-bind ...................................... ember-homepage/components/liquid-bind/component
resolver.js:323 [ ] component:liquid-bind ...................................... ember-homepage/components/liquid-bind
resolver.js:323 [✓] component:liquid-bind ...................................... ember-homepage/components/liquid-bind
resolver.js:323 [✓] component:liquid-bind ...................................... ember-homepage/components/liquid-bind
resolver.js:323 [ ] template:components/liquid-bind ............................ ember-homepage/liquid-bind/template
resolver.js:323 [ ] template:components/liquid-bind ............................ ember-homepage/components/liquid-bind/template
resolver.js:323 [ ] template:components/liquid-bind ............................ undefined
resolver.js:323 [ ] template:components/liquid-bind ............................ ember-homepage/templates/components/liquid-bind
resolver.js:323 [ ] template:components/liquid-bind ............................ ember-homepage/liquid-bind/template
resolver.js:323 [ ] template:components/liquid-bind ............................ ember-homepage/components/liquid-bind/template
resolver.js:323 [ ] template:components/liquid-bind ............................ undefined
resolver.js:323 [ ] template:components/liquid-bind ............................ ember-homepage/templates/components/liquid-bind
resolver.js:323 [ ] template:components/liquid-bind ............................ undefined
resolver.js:323 [ ] component:liquid-container ................................. ember-homepage/liquid-container/component
resolver.js:323 [ ] component:liquid-container ................................. ember-homepage/components/liquid-container/component
resolver.js:323 [ ] component:liquid-container ................................. ember-homepage/components/liquid-container
resolver.js:323 [✓] component:liquid-container ................................. ember-homepage/components/liquid-container
resolver.js:323 [✓] component:liquid-container ................................. ember-homepage/components/liquid-container
resolver.js:323 [ ] template:components/liquid-container ....................... ember-homepage/liquid-container/template
resolver.js:323 [ ] template:components/liquid-container ....................... ember-homepage/components/liquid-container/template
resolver.js:323 [ ] template:components/liquid-container ....................... undefined
resolver.js:323 [ ] template:components/liquid-container ....................... ember-homepage/templates/components/liquid-container
resolver.js:323 [ ] template:components/liquid-container ....................... ember-homepage/liquid-container/template
resolver.js:323 [ ] template:components/liquid-container ....................... ember-homepage/components/liquid-container/template
resolver.js:323 [ ] template:components/liquid-container ....................... undefined
resolver.js:323 [ ] template:components/liquid-container ....................... ember-homepage/templates/components/liquid-container
resolver.js:323 [ ] template:components/liquid-container ....................... undefined
resolver.js:323 [ ] component:liquid-versions .................................. ember-homepage/liquid-versions/component
resolver.js:323 [ ] component:liquid-versions .................................. ember-homepage/components/liquid-versions/component
resolver.js:323 [ ] component:liquid-versions .................................. ember-homepage/components/liquid-versions
resolver.js:323 [✓] component:liquid-versions .................................. ember-homepage/components/liquid-versions
resolver.js:323 [✓] component:liquid-versions .................................. ember-homepage/components/liquid-versions
resolver.js:323 [ ] template:components/liquid-versions ........................ ember-homepage/liquid-versions/template
resolver.js:323 [ ] template:components/liquid-versions ........................ ember-homepage/components/liquid-versions/template
resolver.js:323 [ ] template:components/liquid-versions ........................ undefined
resolver.js:323 [ ] template:components/liquid-versions ........................ ember-homepage/templates/components/liquid-versions
resolver.js:323 [ ] template:components/liquid-versions ........................ ember-homepage/liquid-versions/template
resolver.js:323 [ ] template:components/liquid-versions ........................ ember-homepage/components/liquid-versions/template
resolver.js:323 [ ] template:components/liquid-versions ........................ undefined
resolver.js:323 [ ] template:components/liquid-versions ........................ ember-homepage/templates/components/liquid-versions
resolver.js:323 [ ] template:components/liquid-versions ........................ undefined
resolver.js:323 [ ] component:liquid-child ..................................... ember-homepage/liquid-child/component
resolver.js:323 [ ] component:liquid-child ..................................... ember-homepage/components/liquid-child/component
resolver.js:323 [ ] component:liquid-child ..................................... ember-homepage/components/liquid-child
resolver.js:323 [✓] component:liquid-child ..................................... ember-homepage/components/liquid-child
resolver.js:323 [✓] component:liquid-child ..................................... ember-homepage/components/liquid-child
resolver.js:323 [ ] template:components/liquid-child ........................... ember-homepage/liquid-child/template
resolver.js:323 [ ] template:components/liquid-child ........................... ember-homepage/components/liquid-child/template
resolver.js:323 [ ] template:components/liquid-child ........................... undefined
resolver.js:323 [ ] template:components/liquid-child ........................... ember-homepage/templates/components/liquid-child
resolver.js:323 [ ] template:components/liquid-child ........................... ember-homepage/liquid-child/template
resolver.js:323 [ ] template:components/liquid-child ........................... ember-homepage/components/liquid-child/template
resolver.js:323 [ ] template:components/liquid-child ........................... undefined
resolver.js:323 [ ] template:components/liquid-child ........................... ember-homepage/templates/components/liquid-child
resolver.js:323 [ ] template:components/liquid-child ........................... undefined
resolver.js:323 [ ] helper:eq .................................................. ember-homepage/eq/helper
2resolver.js:323 [ ] helper:eq .................................................. ember-homepage/helpers/eq
resolver.js:323 [✓] helper:eq .................................................. ember-homepage/helpers/eq
resolver.js:323 [✓] helper:eq .................................................. ember-homepage/helpers/eq
resolver.js:323 [ ] helper:message/txt ......................................... ember-homepage/message/txt/helper
2resolver.js:323 [ ] helper:message/txt ......................................... undefined
resolver.js:323 [ ] helper:message/txt ......................................... ember-homepage/helpers/message/txt
resolver.js:323 [ ] helper:message/txt ......................................... ember-homepage/message/txt/helper
2resolver.js:323 [ ] helper:message/txt ......................................... undefined
resolver.js:323 [ ] helper:message/txt ......................................... ember-homepage/helpers/message/txt
resolver.js:323 [ ] helper:message/txt ......................................... undefined
resolver.js:323 [ ] service:liquid-fire-transitions ............................ ember-homepage/liquid-fire-transitions/service
2resolver.js:323 [ ] service:liquid-fire-transitions ............................ ember-homepage/services/liquid-fire-transitions
resolver.js:323 [✓] service:liquid-fire-transitions ............................ ember-homepage/services/liquid-fire-transitions
resolver.js:323 [✓] service:liquid-fire-transitions ............................ ember-homepage/services/liquid-fire-transitions
resolver.js:323 [ ] transitions:main ........................................... ember-homepage/main/transitions
resolver.js:323 [ ] transitions:main ........................................... ember-homepage/transitions
resolver.js:323 [✓] transitions:main ........................................... ember-homepage/transitions
resolver.js:323 [✓] transitions:main ........................................... ember-homepage/transitions
resolver.js:323 [ ] transition:fade ............................................ ember-homepage/fade/transition
2resolver.js:323 [ ] transition:fade ............................................ ember-homepage/transitions/fade
resolver.js:323 [✓] transition:fade ............................................ ember-homepage/transitions/fade
resolver.js:323 [✓] transition:fade ............................................ ember-homepage/transitions/fade
component.js:5 mainRecursiveNewMessage
index.js:12 reducing next state from state:
This addon was not published. I want to use this addon, therefore I published it (https://www.npmjs.com/package/ember-cli-facebook-js-sdk). Let me know if you have any concern.
@bugant Hey man, really thank's for this addon!
I need to know: Can I set appId dynamic? For example, I have 2 differents appIds and depend where it is call, I will use appId X or appId Y.
When trying to leverage facebook authentication in chrome on Android, the facebook login page opens (as new tab) and my app looses focus. Due to this the chrome seems to be unloading the app from page.
So when you complete the authentication in facebook and try to get your app back in focus it refreshes and looses the javascript state.
I came across a blog post http://www.seanshadmand.com/2015/03/06/facebook-js-login-on-chrome-ios-workaround/ which talks a possible solution for this problem but not the exact scenario I am raising
Which explains a way to overcome this problem.
It does not seem to be happening on phones with better memory and processing power but on the basic android phones.
Anybody know how to get the popup blocker to not engage due to the FB.login not being called in response to a direct click?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.