 promises          = require '../../utils/promises'
 clone             = require '../../utils/clone'
 GenericService    = require './generic_service'
+
+FB_EVENTS = ["auth.authResponseChanged", "auth.statusChange", "auth.login", "auth.logout", "comment.create", "comment.remove", "edge.create", "edge.remove", "message.send", "xfbml.render"]
 
 class FacebookService extends GenericService
   name : 'facebook'


  subscribeToFBEvents : ()->
    return unless FB?.Event?
    FB.Event.subscribe 'auth.statusChange',       @updateFBUserStatus
    FB.Event.subscribe 'auth.authResponseChange', @updateFBUserStatus
    FB.Event.subscribe 'auth.login',              @updateFBUserStatus
    FB.Event.subscribe 'auth.logout',             @updateFBUserStatus

  loadFbSdk: (config)->
    dfd = promises.deferred()

      , 100

    else
      FB.api path, request.method, request.params, fbCallback(request, {isUICall:false, path}, callback, fbErrback)


  showIframe : ->
