Profile
Facebook profile
GET
https://us-central1-appgregator.cloudfunctions.net/facebook/profile/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
fbads-01
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
{
"name": "Ronald Adriansyah",
"email": "adrian_syah78@yahoo.co.id",
"id": "3305578009767732",
"ids_for_business": {
"data": [
{
"id": "3305578009767732",
"app": {
"category": "Business",
"link": "https://appgregator.co/",
"name": "appgre-ads",
"id": "600957674560496"
}
}
],
"paging": {
"cursors": {
"before": "QVFIUnpEZATZAiRWt6M2xfNEcyWFBGOXZAxZAGo4dGZAEUGVCUkpOWmJGaGR5NTBSMDhURXhEMXNuVjczOTJCbWV6Q0NSanRtRnpnckMwVEFTRDhGYmpQNVJVenN3",
"after": "QVFIUnpEZATZAiRWt6M2xfNEcyWFBGOXZAxZAGo4dGZAEUGVCUkpOWmJGaGR5NTBSMDhURXhEMXNuVjczOTJCbWV6Q0NSanRtRnpnckMwVEFTRDhGYmpQNVJVenN3"
}
}
},
"adaccounts": {
"data": [
{
"id": "act_1514519918873559",
"name": "Creative",
"users": {
"data": [
{
"name": "Ronald Adriansyah",
"tasks": [
"DRAFT",
"ANALYZE",
"ADVERTISE",
"MANAGE"
],
"id": "3305578009767732"
}
]
},
"owner": "3305578009767732",
"business_name": ""
},
{
"id": "act_1217648562383717",
"name": "Sample Promoted Post",
"owner": "404745734937629",
"business_name": ""
},
{
"id": "act_901945424113202",
"name": "backup 1",
"owner": "508073286562918",
"business_name": ""
},
{
"id": "act_1441144179695856",
"name": "Property New",
"owner": "508073286562918",
"business_name": ""
}
],
"paging": {
"cursors": {
"before": "MjM4NDI2MTA0NTYyODA1NDkZD",
"after": "MjM4NTE2NzU5MDIyMzAyMDkZD"
}
}
}
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/facebook/profile?name=ft-4&connection_name=fbads-01' \
--header 'x-api-key: U2Fsd...'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/facebook/profile?name=ft-4&connection_name=fbads-01',
headers: {
'x-api-key': 'U2Fsd...'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/facebook/profile?name=ft-4&connection_name=fbads-01',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated