I have created a facebook app and approved the app to access manage_pages.I am looking for php code to get page access from page to get the page information. Show For getting reviews and rating I am using the below code
I am getting the below error (#210) This call requires a Page access token. Any help will be highly appreciated. asked Apr 5, 2016 at 13:07
4 Create new object like this and set access_token if not exists:
Change FB_APP_ID and FB_APP_SECRET, only with yours. Now you have access token, after that you can make requests and get data that u need access token for it like this (for the example):
Where $page_id is id of some page, where you can find it with its FB page URL . answered Apr 16, 2016 at 5:46
gdfgdfggdfgdfg 2,8516 gold badges35 silver badges69 bronze badges 883 votes 0 answers I am trying to pull back an array of customer reviews (ratings?) from a particular facebook page. I understand I need the The problem I'm having is that I cannot use the permission to provide the steps and screencast because any attempt to do so results in the API telling me that it needs that permission. So a bit of a paradox really. I assume there must be some kind of way to reproduce the steps needed in a test environment, but setting up a test app and using the
My code is as follows:
Edit (following comment from luschn) I have altered my code to include the following, but I still get told that
2022-04-7 People are also looking for solutions of the problem: sqlstate[23000]: integrity constraint violation: 1452 cannot add or update a child row: a foreign key constraint fails ShareDidn't find the answer?Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free. Similar questionsFind the answer in similar questions on our website. How do I get Facebook Reviews on my page?To turn on Facebook reviews:. Go to your brand page.. Click on the “Settings” button on the Manage Page section.. A new window should appear. Click on the “Templates and Tabs” section.. Toggle the “Reviews” option to ON.. How do I get Reviews on Facebook API?You can get all reviews from a single place by using the cursor parameter. Unlike other integrations, the facebook api doesn't support the offset parameter to paginate the results. Instead the pages need to be iterated one by one. To do this, each response comes with a next_page_cursor field.
|