Added facebook sdk version
Added grouping algorithm