       @appStorage.setValue "FacebookAppId"       , @appId
       @appStorage.setValue "FacebookAppNamespace", @appNamespace
       @appStorage.setValue "FacebookAppCanvasUrl", @appCanvasUrl
+      @setAppInfoToCloud()
 
     @container.setClass "Facebook"
     @on "WorkspaceSyncedWithRemote", =>

          else
            @startImport()
      else
        @checkFiles (err, res) =>
          @startImport()  unless res


    previewPane.previewer.openPath target

  runOnFB: ->
    if not @amIHost() and not @appNamespace
      return @getAppInforFromCloud => @runOnFB()

    KD.utils.createExternalLink "http://apps.facebook.com/#{@appNamespace}"

  setAppInfoToCloud: ->
