I've bought Perfex CRM and their Facebook leads connector, followed each steps to configure but now I'm facing an issue:
when I Login with Facebook and I select all pages (45) for granting app permission the Facebook API returns only 25 pages (the pages that I created with my profile), but my customer's pages - in which I have admin permission - are not returned.
// Logged into your app and Facebook.
FB.api('me/accounts', function(response) {
console.log('successfully retrieved pages', response);
var pages = response.data;
var token = $('input[name="csrfToken"]').attr('value');
$.ajax({
url: 'facebook_leads_integration/getTable',
type: 'POST',
data: {
pages: pages,
CSRF: token
},
success: function(resp) {
$('#list').html(resp);
//To get data by using leadgenId
},
error: function() {
console.log('something went wrong');
}
});
});
} else if (response.status == 'not_authorized') {
} else {
}
}, {
scope: 'pages_manage_ads,pages_manage_metadata,pages_read_engagement,ads_management,leads_retrieval'
});