     fetchGroup client, (err, group)->
       return callback err if err
       {connection:{delegate}} = client
-      delegate.createSocialApiId (err, socialApiId)=>
+      delegate.createSocialApiId (err, socialApiId)->
         return callback err if err
 
         data =

  @listPinnedMessages = permit 'pin posts',
    success:  (client, data, callback)->
      {connection:{delegate}, context} = client
      delegate.createSocialApiId (err, socialApiId)=>
        return callback err if err
        data.accountId = socialApiId
        data.groupName = context.group

  @pinMessage = permit 'pin posts',
    success:  (client, data, callback)->
      {connection:{delegate}, context} = client
      delegate.createSocialApiId (err, socialApiId)->
        return callback err if err
        unless data.messageId
          return callback {message: "Message id is not set for pinning "}

        data.groupName = context.group
        data.accountId = socialApiId
