Retrieving Facebook Permissions
Description
This web service returns all the Facebook permissions.
Definition
GET
Copy
https://<domain>/services/apexrest/peer/v1/FBPermissions/*
Parameters
The table given below provides details of the request parameters used by this web service:
Fields | Type | Description |
---|---|---|
isInvestor | String |
|
Error messages
When you post a web service, you can receive the possible error messages as shown in the table below:
Error Code |
Reason |
HTTP Status Code |
---|---|---|
INVALID_INPUT | You will receive this error if the external ID is not specified. Here, external ID is the link between your Facebook account and your Salesforce account |
400 |
INVALID_INPUT | You will receive this error if all Facebook permissions for investor role and borrower role are returned. | 500 |
Sample Request
The sample request to be sent is as shown below:
GET
Copy
https://na11.salesforce.com/services/apexrest/peer/v1/FBPermissions/*
Sample Response
The sample response that you will receive is as shown below:
Sample Response
Copy
{
"status":"SUCCESS",
"response":[
],
"errorCode":"NO_ERROR",
"content":[
{
"attributes":{
"type":"peer__FB_Permissions__c",
"url":"/services/data/v30.0/sobjects/peer__FB_Permissions__c/a30G000000057E5IAI" },
"peer__Lender_Required__c":true,
"Name":"email",
"peer__FB_Optional__c":false,
"Id":"a30G000000057E5IAI",
"peer__Borrower_Required__c":false
},
{
"attributes":{
"type":"peer__FB_Permissions__c",
"url":"/services/data/v30.0/sobjects/peer__FB_Permissions__c/a30G000000058b0IAA" },
"peer__Lender_Required__c":true,
"Name":"user_events",
peer__FB_Optional__c":false,
"Id":"a30G000000058b0IAA",
"peer__Borrower_Required__c":true
},
{
"attributes":{
"type":"peer__FB_Permissions__c",
"url":"/services/data/v30.0/sobjects/peer__FB_Permissions__c/a30G000000058b5IAA" },
"peer__Lender_Required__c":false,
"Name":"user_checkins",
"peer__FB_Optional__c":false,
"Id":"a30G000000058b5IAA",
"peer__Borrower_Required__c":true
}
]