Note that there are some explanatory texts on larger screens.

plurals
  1. POMule facebook connector, failing to publish a post
    primarykey
    data
    text
    <p>I am trying to use facebook connector in mule, I've 2 flows, one to authorize, and the other to post a simple text in facebook. The problem is after authorizing my program, I lose the accessTokenID, and it can't be saved. </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:facebook="http://www.mulesoft.org/schema/mule/facebook" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/facebook http://www.mulesoft.org/schema/mule/facebook/2.0/mule-facebook.xsd http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"&gt; &lt;facebook:config-with-oauth name="Facebook" appId="appID" appSecret="appSecret" doc:name="Facebook" scope="publish_stream"&gt; &lt;facebook:oauth-callback-config domain="${fullDomain}" localPort="${http.port}"/&gt; &lt;/facebook:config-with-oauth&gt; &lt;flow name="Authorization" doc:name="Authorization"&gt; &lt;http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="${http.port}" doc:name="HTTP"/&gt; &lt;facebook:authorize config-ref="Facebook" doc:name="Facebook"/&gt; &lt;set-session-variable doc:name="Save Access Token" value="\#[flowVars['OAuthAccessTokenId']]" variableName="accessTokenId"/&gt; &lt;flow-ref name="posting" doc:name="post on facebook"/&gt; &lt;/flow&gt; &lt;flow name="posting" doc:name="posting"&gt; &lt;http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="${http.port}" path="post" doc:name="HTTP"/&gt; &lt;facebook:publish-message config-ref="Facebook" msg="Hi, I am from Mule, where are you from?" profile_id="myprofileID" doc:name="Facebook" accessTokenId="\#[sessionVars['accessTokenId']]"/&gt; &lt;json:object-to-json-transformer doc:name="Object to JSON"/&gt; &lt;/flow&gt; &lt;/mule&gt; </code></pre> <p>And this is the error I get in cloudhub:</p> <pre><code>******************************************************************************** Message : null Code : MULE_ERROR--1 -------------------------------------------------------------------------------- Exception stack is: 1. null (org.mule.api.store.ObjectStoreNotAvaliableException) com.mulesoft.ch.objectstore.proxy.ObjectStoreProxyImpl:59 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/store/ObjectStoreNotAvaliableException.html) -------------------------------------------------------------------------------- Root Exception stack trace: org.mule.api.store.ObjectStoreNotAvaliableException at com.mulesoft.ch.objectstore.proxy.ObjectStoreProxyImpl.contains(ObjectStoreProxyImpl.java:59) at com.mulesoft.ch.objectstore.ObjectStoreImpl.contains(ObjectStoreImpl.java:31) at org.mule.module.facebook.oauth.FacebookConnectorOAuthClientFactory.makeObject(FacebookConnectorOAuthClientFactory.java:31) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** </code></pre> <p>Anyone can help me with it? I think that session-variable won't be saved, but there's no way I can prove it. Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload