The video below shows a sample scenario how to publish entries into a community activity stream from an XPages application. From the activity stream these entries can be opened in the embedded experience which brings up the XPages app.
I’ve implemented this sample scenario via the XPages social enabler and the ActivityStreamService I blogged about earlier. You can download this code from OpenNTF.
In order to display the XPages app in the embedded experience I actually did not implement my own open social gadget. Instead I use the same ‘generic built in URL gadget’ I used for the previous sample showing XPages in the embedded experience in Connections mail. While you cannot access the open social container APIs using the generic gadget, the beauty is that it works for all URLs/web pages. In order to run this sample you need Connections CR2.