standalone sidebar code for social api integration