PHP - Facebook API Callback Help

Our use of the Facebook API is to allow users to post content to any Facebook page their account has. They login into Facebook via our website, and once logged in, the user can have access to any of their already created pages to post the respective content to.

The desired overall purpose for the whole API is once the user has logged in, they can select which of their account's pages they wish the content to be posted to, and once selected, the content is published on those pages.

We currently have an app created on Facebook Developers, with permissions such as 'publish_pages', manage_pages' and 'publish_to_groups' which is what we need as we only post to Facebook. I have set up a login procedure on our website, and users can successfully login. The issue we are having is to do with the information that comes back to our website. The information comes back to our site like this via a callback:

object(Facebook\FacebookResponse)#18 (6) {




array(16) {


string(42) ""xxxxxxxxxxxxxxxxxxxxxxxxxxxx""


string(29) "Sat, 01 Jan 2000 00:00:00 GMT"


string(31) "application/json; charset=UTF-8"


string(4) "v3.1"


string(11) "CSkI7hlwfzy"


string(7) "4424137"


string(49) "{"call_count":0,"total_cputime":0,"total_time":0}"


string(44) "private, no-cache, no-store, must-revalidate"


string(8) "no-cache"


string(25) "max-age=15552000; preload"


string(1) "*"


string(15) "Accept-Encoding"


string(88) "x0Hjs2LYvAJx5LBVj6IzQBddE1V3B9OnCIixQmj67mPaW7yGTolCqcuWk43VFztiTRwmat9UAKmzfQJdfFTkdw=="


string(29) "Tue, 16 Oct 2018 09:07:24 GMT"


string(10) "keep-alive"


string(2) "56"



string(56) "{"name":"Marketing company page","id":"xxxxxxxxxxxxxx"}"


array(2) {


string(22) "Marketing company page"


string(15) "xxxxxxxxxxxxxx"



object(Facebook\FacebookRequest)#16 (9) {


object(Facebook\FacebookApp)#3 (2) {


string(15) "xxxxxxxxxxxxxxxx"


string(32) "xxxxxxxxxxxxxxxxxxxxxx"



string(192) "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"


string(3) "GET"


string(17) "/xxxxxxxxxxxxxxxxxxx/"


array(1) {


string(33) "application/x-www-form-urlencoded"



array(0) {



array(0) {





string(5) "v2.11"





A detailed object with arrays inside. The important part is information about the created pages like this:


string(56) "{"name":"Marketing company page","id":"xxxxxxxxxxxxxxx"}"


array(2) {


string(22) "Marketing company page"


string(15) "xxxxxxxxxxxxxxxxxx"


However we can't find a way of accessing this information and using it usefully (to add our Facebook pages into a dropdown, for example), if anyone can help, looking at the whole object, the path to access this information. Also each section has ':protected' as apart of it, we don't know if this is what is stopping me from accessing the information I need and how I can remove it if it is.

Skills: Facebook API, HTML, MySQL, PHP

See more: facebook graph api example, facebook login signup in php code, integrate facebook login into website php, register with facebook php example, facebook php sdk, facebook javascript sdk example, facebook login signup php, login with facebook in php website, facebook api profile import php, facebook api php username, php google checkout api callback script, using facebook api upload videos php, sending message using php facebook api, facebook api php curl post wall, sendmessage facebook api php, add friends facebook api php, facebook api connect php, php facebook api, php facebook api script, php facebook api form

About the Employer:
( 3 reviews ) London, United Kingdom

Project ID: #17977713

Awarded to:


Hi there, I have read your job description carefully. I am very interested in this project. I have much experiences with Facebook API. Facebook team changed some policy of using app, so maybe there is permission issu More

£13 GBP / hour
(58 Reviews)

9 freelancers are bidding on average £13/hour for this job


Hello , How are you? I just saw your project description carefully. I am very interested in your project. I have rich experience in Facebook API callback function. I am ready to start your project immediately. I More

£15 GBP / hour
(171 Reviews)

Hello, Hope you are Hale & Healthy. I am highly interested to work on this project as I great experience working over different-2 API integration to websites based on client needs. I am a PHP expert and have b More

£13 GBP / hour
(46 Reviews)

Dear Client, Hope you are doing well!! I have worked on several number of API like Facebook, Twitter, Yahoo, Google Apps, Dropbox, Pipedrive, SOAP, REST, Asana,JSON, Eventbrite api, twillio api.I am ready to add cr More

£13 GBP / hour
(56 Reviews)

Hi. I have read your api issue. I have enough experience to complete your project. I will provide you perfect result within short time. I am full stack php expert and have enough experience in developing FB sdks. More

£15 GBP / hour
(10 Reviews)

Hi, I have read your description and i am so interested in your project. I am confident in your project and I can finish it clearly on time. I have +6 years experience in web developing and I am well experienced an More

£13 GBP / hour
(11 Reviews)

Hello, I read your complete job description and you are looking for Facebook API callback help. I am the perfect fit for this job according to your requirements. Over the last 5 years, I am developing website Us More

£12 GBP / hour
(13 Reviews)

I have vast experience in core Php and Codeigniter framework. I have developed many projects in Codeigniter and core Php like Management system, eCommerce website, Customer relationship management (CRM) etc. I can prov More

£11 GBP / hour
(28 Reviews)

Hi There, Thank you for sharing your requirements here at freelancer and I am pleased to introduce myself, I am Sundararaj, I got an opportunity to review your requirement and heeded that you are looking for a PHP More

£13 GBP / hour
(0 Reviews)