SeamFramework.orgCommunity Documentation
Seam Social provides a MultiServicesManager
bean that can help you to manage multiple services and
sessions for one user. Without this bean you’ll be able to have multiple services but only one session for each
service. The web app example application is a good starting point to learn how to use MultiServicesManager
bean.
Right now Seam Social comes with 3 basic service modules : Twitter, Facebook and LinkedIn. For this first Seam Social release (3.1.0), our main goal was to create a good core API for identification so provided modules have very basic functionalities. Check the JavaDoc to learn about them. We’ll provide more functionalities and modules for the next release.
To extend Seam Social by supporting a new service you’ll have to provide the following class or ressources :
@SocialRelated
meta annotation and the corresponding
literal. You’ll also need to create a properties file having the same name than your Qualifier. All of these
should reside in the org.jboss.seam.social
package.
OAuthService
interface. Extending the OAuthServiceBase
is
probably the easiest way to get it. It’s good practice to create an interface for this bean to have an easy way
to switch implementations if needed.
ServiceConfiguration
having the service qualifier. Implements the
getServiceClass()
method by returning the class you created in step 2.
The Facebook module is a good example of such an extension.