Adding a user to group in spark plugin


I am trying to add a user to the buddy list (roaster) in my spark plugin. It seems like I am able to add the user but cannot get the presence.

Does anyone know how to do this program.

Thanks in advance.