...
Code Block |
---|
language | html/xml |
---|
title | createUserAchievement |
---|
|
<facebook.createUserAchievement>
<achievement>{$ctx:achievement}</achievement>
</facebook.createUserAchievement> |
Properties
achievement: Required - The unique URL of the type of achievement that the person will receive.
...
Code Block |
---|
language | html/xml |
---|
title | isFriend |
---|
|
<facebook.isFriend>
<sourceUserId>{$ctx:sourceUserId}</sourceUserId>
<targetUserId>{$ctx:targetUserId}</targetUserId>
</facebook.isFriend> |
Properties
- sourceUserId: ID of the person to be determined.
- targetUserId: ID of the user to be checked with.
...
Publishing photosAllows the user to upload photos. This does not require init to be called before the operation. Refer to multipart processing for detailed information.
...
Following is a sample REST request for the publishPhoto method.
Code Block |
---|
language | html/xml |
---|
title | Sample Request for publishPhoto |
---|
|
curl -X POST \
-d "source=%7Bimage-data%7D" \
http://localhost:8280/services/facebook_publishPhoto?user_id={userId} |
...
Code Block |
---|
language | html/xml |
---|
title | createEvent |
---|
|
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="facebook_createPost"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence onError="faultHandlerSeq">
<property name="apiUrl"
expression="json-eval($.apiUrl)"/>
<property name="apiVersion"
expression="json-eval($.apiVersion)"/>
<property name="accessToken"
expression="json-eval($.accessToken)"/>
<property name="achievement"
expression="json-eval($.achievement)"/>
<property name="apiVersion"
expression="json-eval($.apiVersion)"/>
<facebook.init>
<apiUrl>{$ctx:apiUrl}</apiUrl>
<apiVersion>{$url:apiVersion}</apiVersion>
<accessToken>{$ctx:accessToken}</accessToken>
</facebook.init>
<facebook.createUserAchievement>
<achievement>{$ctx:achievement}</achievement>
</facebook.createUserAchievement>
<respond/>
</inSequence>
<outSequence>
<property name="messageType" value="application/json" scope="axis2" />
<send/>
</outSequence>
</target>
</proxy> |