Running the Facebook Client Sample
Start the application and test the HTTP GET and POST operations. You can run the sample from TIBCO Business Studio - BPM Edition.
- Procedure
- Deploy the DAA located in Deployment Artifacts:
- Facebook Graph APIs are SSL protected and hence the client must be SSL-enabled. The certificate file (.crt) and keystore (.jks) file are packaged along with this sample.
- The above keystore is referred by
Resource Template/FacebookKeystoreProviderResource.cred
. Update it with the absolute path to the keystore.Note: If the keystore has expired, download it from the Facebook site. - Right-click the design panel background.
- Select Debug in RAD to start the application.
- Use the URL
http://<Host>:<Port>/fBGraphService?wsdl
to load the WSDL in the SOAP UI or in the WebService Explorer.You can see an operation
getUserProfile
which accepts two arguments -user
andaccess_token
. Theaccess_token
argument is the OAuth token required by the Facebook REST API anduser
is the username or id orme
(currently logged in user). - Get an Access Token:
- Open Facebook Graph Explorer using the following URL:
https://developers.facebook.com/tools/explorer/?method=GET&path=me
. - After authentication, click Get Acces Token on the right side in Graph API Explorer.
- After you get the Access Token, use it while invoking the getUserProfile operation.
- Open Facebook Graph Explorer using the following URL: