Færdiggjort

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) {

["httpStatusCode":protected]=>

int(200)

["headers":protected]=>

array(16) {

["ETag"]=>

string(42) ""xxxxxxxxxxxxxxxxxxxxxxxxxxxx""

["Expires"]=>

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

["Content-Type"]=>

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

["facebook-api-version"]=>

string(4) "v3.1"

["x-fb-trace-id"]=>

string(11) "CSkI7hlwfzy"

["x-fb-rev"]=>

string(7) "4424137"

["x-app-usage"]=>

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

["Cache-Control"]=>

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

["Pragma"]=>

string(8) "no-cache"

["Strict-Transport-Security"]=>

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

["Access-Control-Allow-Origin"]=>

string(1) "*"

["Vary"]=>

string(15) "Accept-Encoding"

["X-FB-Debug"]=>

string(88) "x0Hjs2LYvAJx5LBVj6IzQBddE1V3B9OnCIixQmj67mPaW7yGTolCqcuWk43VFztiTRwmat9UAKmzfQJdfFTkdw=="

["Date"]=>

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

["Connection"]=>

string(10) "keep-alive"

["Content-Length"]=>

string(2) "56"

}

["body":protected]=>

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

["decodedBody":protected]=>

array(2) {

["name"]=>

string(22) "Marketing company page"

["id"]=>

string(15) "xxxxxxxxxxxxxx"

}

["request":protected]=>

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

["app":protected]=>

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

["id":protected]=>

string(15) "xxxxxxxxxxxxxxxx"

["secret":protected]=>

string(32) "xxxxxxxxxxxxxxxxxxxxxx"

}

["accessToken":protected]=>

string(192) "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

["method":protected]=>

string(3) "GET"

["endpoint":protected]=>

string(17) "/xxxxxxxxxxxxxxxxxxx/"

["headers":protected]=>

array(1) {

["Content-Type"]=>

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

}

["params":protected]=>

array(0) {

}

["files":protected]=>

array(0) {

}

["eTag":protected]=>

NULL

["graphVersion":protected]=>

string(5) "v2.11"

}

["thrownException":protected]=>

NULL

}

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

["body":protected]=>

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

["decodedBody":protected]=>

array(2) {

["name"]=>

string(22) "Marketing company page"

["id"]=>

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.

Evner: Facebook API, HTML, MySQL, PHP

Se mere: 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

Om arbejdsgiveren:
( 1 bedømmelse ) London, United Kingdom

Projekt ID: #17977713

Tildelt til:

yuriyes43

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 Flere

£13 GBP / time
(35 bedømmelser)
5.1

10 freelancere byder i gennemsnit £13/time for dette job

superwanchiu

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 Flere

£15 GBP / time
(156 bedømmelser)
7.1
rajneeshsaini

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 Flere

£13 GBP / time
(46 bedømmelser)
6.4
JinMeng08

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 Flere

£13 GBP / time
(9 bedømmelser)
4.8
symaticssolution

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 Flere

£13 GBP / time
(52 bedømmelser)
6.3
devolper102

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 Flere

£12 GBP / time
(13 bedømmelser)
4.6
hy1990com

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. Flere

£15 GBP / time
(7 bedømmelser)
4.7
webinvoidia

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 Flere

£11 GBP / time
(26 bedømmelser)
4.3
arcsoft16

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned "I can do Flere

£13 GBP / time
(0 bedømmelser)
0.0
Creosen7

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 Flere

£13 GBP / time
(0 bedømmelser)
0.0