Saves the Facebook pages.

URL : facebook/page/save

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
page_ids array Required IDs of the Facebook Pages to save .

Response :

{

"success":true,

"message":"Page(s) added successfully."

}

Gets the Facebook Credentials.

URL : facebook/credentials

Method : GET

Response :

{


"success":true,
"message":"Facebook App Registered. Now you can Configure App.",
"data":   {
          "id":1,
          "app_id":"390858208275535",
"secret":"b19b12a98b7ac95c74bccb8bc6f725c9",
     "access_token":"EAAFje8SpbE8BAK3R1e3knkB7Qo6pZBdXQ8IAzYfprVmuM1hmQQ24Ph5wUQjEwVlfxWBgoTJZByKvRiLqZCvsa0WxYviZAZBG40WTRPbLT0OgDZD",
         "new_ticket_interval":5,
         "created_at":"2019-11-05 06:54:13",
         "updated_at":"2019-11-05 06:59:31"}
}

Saves the Facebook App.

URL : facebook/app/create

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
app_id string Required ID of the Facebook App.
secret string Required Facebook App secret

Response :

{

 "success":true,

 "message":"Facebook App is Registered. Click the 'Page Settings' button to Configure Facebook App. Refreshing    Page..."

}

Updates the Facebook App.

URL : facebook/app/update

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
app_id string Required ID of the Facebook App.
secret string Required Facebook App secret

Response :

{

 "success":true,

 "message":"Facebook App Credentials are Updated."

}

 

Refreshes the pages associated with the Facebook App.

URL : facebook/page/refresh

Method : GET

Response :

{
"success":true,
"message":"Pages Present",
"data":[
{"page_id":"102193144545846","page_name":"Greenwich Pre-School"},                                                           {"page_id":"104682324289291","page_name":"Kustom Kars"},
{"page_id":"108318107260861","page_name":"School 12"}
]}

Gets the active Facebook Pages

URL : facebook/pages/view

Method : POST

Response :

{

 "success":true,

 pages":[
         {
           "id":5,"app_id":"1",
           "page_id":"104363134325498",
           "page_name":"Health Medicals",
           "access_token":"EAAFje8Spb3nM4S3TF4JCMBWtZBhEGOdidHB6qeEKQLSILeRdYBS9IeqMZCIqLGoc",
           "active":1,
           "logo":"jgOQxAAAAJI8BAACg6gCxZEpeo2xHKQAAAABJRU5ErkJggg==",
           "created_at":2019-10-05 07:23:26,
           "updated_at":"2019-11-05 07:23:26"
         }
        ]

}

Deletes  Facebook Page.

URL : facebook/pages/delete/{id}

Method : DELETE

Query Parameters :

Parameter Type Optional/Required Description
page_id string Required ID of the Facebook Page to delete.

Response :

{

 "success":true,

 "message":"Page deleted successfully."

}

Sets the interval after which reply will be converted as a new ticket.

URL : facebook/app/interval/{value}

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
value integer Required Value to be new ticket interval (in Days)

Response :

{

 "success":true,

 "message":"New Ticket Interval Changed."

}

 

Sets the  Cron for Facebook plugin on/off.

URL : facebook/condition/{enable?}

Method : POST

Query Parameters :

 

Parameter Type Optional/Required Description
enable boolean Required true = On, false = Off

Response :

{

 "success":true,

 "message":"Cron for facebook plugin successfully turned $resultMsg"

}

 

Tagged: