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

Monday, January 3, 2022

[FIXED] Facebook - Invalid Scopes: manage_pages , publish_pages when my app in live mode

 January 03, 2022     facebook-graph-api, facebook-login, facebook-php-sdk, laravel-socialite     No comments   

Issue

I am using Laravel version 5.8 and I am using Laravel Sociallite plugin to connect users with Facebook.

Now I want to get pulbish_pages and manage_pages access so that I can post on my Facebook page.

I have tried following code:

public function redirectToProvider() {
    return Socialite::with('facebook')->scopes(['manage_pages','publish_pages'])->redirect();
}

Now when I click on login with the Facebook button it shows error like:

Invalid Scopes: manage_pages,publish_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions

enter image description here


Solution

https://developers.facebook.com/docs/apps/review/

You have to get those permissions approved by Facebook before you can go live with your App. Without approval, they will only work for users with a role in the App.



Answered By - andyrandy
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

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