       , 100
 
     else
-      FB.api path, request.method, request.params, fbCallback(request, {uiAction:false, path}, callback, fbErrback)
+      FB.api path, request.method, request.params, fbCallback(request, {isUICall:false, path}, callback, fbErrback)
 
 
   showIframe : ->


  fbRequestCallback : (request, opts={}, callback, errback) =>
    (response) =>
      @fbUiCallback(request,response,opts.path) if opts.uiAction
      if !response or response?.error
        errorMsg = if (response) then "[Facebook Error] #{response.error.type}  : #{response.error.message}" else "[Facebook Error] Unknown error"
        return errback(errorMsg, { response, request })

      callback({ response, provider: 'facebook' })

  fbUiCallback : (req, res, path)=>
    @hideIframe()
    endpoint = switch path
      when 'ui.apprequests' then 'apprequests'
      when 'ui.share' then 'share'
      when 'ui.feed' then 'feed'
    opts = { path: endpoint, method: 'post', params: res }
    @wrappedRequest(opts)

  updateFBUserStatus: (res)=>


  subscribeToFBEvents : ()->
    return unless FB?.Event?

    _.map FB_EVENTS, (event)=>
      FB.Event.subscribe event, (args...)=>
        @updateFBUserStatus(args...) if event.indexOf('auth.')>-1
        EventBus.emit("fb.#{event}", args...)


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