Last active
August 29, 2015 13:57
-
-
Save ricston-git/9810033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:beans> | |
<spring:bean id="tokenObjectStore" | |
class="org.mule.util.store.SimpleMemoryObjectStore" /> | |
</spring:beans> | |
<facebook:config-with-oauth name="FacebookConfig" | |
consumerKey="${fb.appId}" consumerSecret="${fb.appSecret}"> | |
<facebook:oauth-callback-config domain="${fb.domain}" | |
localPort="${fb.localport}" remotePort="${fb.remoteport}" path="${fb.path}" /> | |
<facebook:oauth-store-config objectStore-ref="tokenObjectStore" /> | |
</facebook:config-with-oauth> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<facebook:config-with-oauth name="FacebookConfig" | |
consumerKey="${fb.appId}" consumerSecret="${fb.appSecret}"> | |
<facebook:oauth-callback-config domain="${fb.domain}" | |
localPort="${fb.localport}" remotePort="${fb.remoteport}" path="${fb.path}" /> | |
</facebook:config-with-oauth> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="authorizingFlow"> | |
<http:inbound-endpoint host="localhost" port="8081" | |
path="authorize" /> | |
<facebook:authorize config-ref="FacebookConfig" /> | |
</flow> | |
<flow name="postStatusFlow"> | |
<http:inbound-endpoint exchange-pattern="request-response" | |
host="localhost" port="8081" path="postStatus" /> | |
<facebook:logged-user-details config-ref="FacebookConfig" /> | |
<facebook:publish-message config-ref="FacebookConfig" | |
msg="This is my message." profile_id="#[payload.Username]" /> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<facebook:logged-user-details config-ref="FacebookConfig" /> | |
<facebook:publish-message config-ref="FacebookConfig" | |
msg="This is my message." profile_id="#[payload.Username]" /> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="facebookFlow" doc:name="facebookingFlow"> | |
<http:inbound-endpoint exchange-pattern="request-response" | |
host="localhost" port="8081" path="authorize" /> | |
<facebook:authorize config-ref="FacebookConfig" /> | |
<facebook:logged-user-details config-ref="FacebookConfig" /> | |
<facebook:publish-message config-ref="FacebookConfig" | |
msg="This is my message." profile_id="#[payload.Username]" /> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<facebook:config-with-oauth name="FacebookConfig" | |
appId="${fb.appId}" appSecret="${fb.appSecret}"> | |
<facebook:oauth-callback-config domain="${fb.domain}" | |
localPort="${fb.localport}" remotePort="${fb.remoteport}" path="${fb.path}" /> | |
</facebook:config-with-oauth> | |
<flow name="facebookingFlow"> | |
<http:inbound-endpoint host="localhost" port="8081" | |
path="authorize" /> | |
<facebook:authorize config-ref="FacebookConfig" /> | |
<facebook:logged-user-details config-ref="FacebookConfig" | |
accessTokenId="#[flowVars['OAuthAccessTokenId']]" /> | |
<facebook:publish-message config-ref="FacebookConfig" | |
accessTokenId="#[flowVars['OAuthAccessTokenId']]" | |
msg="This is my message." profile_id="#[payload.Username]" /> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment