PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 26, 2022

[FIXED] Page ratings require Two Factor Authentication

 February 26, 2022     facebook, facebook-graph-api, facebook-php-sdk     No comments   

Issue

I am using PHP SDK to fetch page ratings for different pages. I am able to fetch ratings from an App Page on facebook by hitting the

{page_id}/ratings

endpoint for the App Page. But when I hit the same endpoint for a restaurant page I get the following error

Facebook\Exceptions\FacebookResponseException (#200) User does not have sufficient administrative permission for this action on this page. If the page business requires Two Factor Authentication, the user also needs to enable Two Factor Authentication.

Does anyone have any idea why might this be happenning?


Solution

Turns out the issue was not related to the error at all.

The problem was that I was passing the wrong Page Id from my code for the second page in the {page_id}\ratings endpoint.

Anyone who comes across such error, do check that you are passing the right page id and page access token.



Answered By - HarshGaikwad
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing