Integrating Pervasive Middleware with Social Networks in SAPERE