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

Saturday, January 15, 2022

[FIXED] Facebook Permission not asked

 January 15, 2022     facebook, facebook-fql, facebook-php-sdk, permissions     No comments   

Issue

I created an app in facebook and added read_mailbox to the required permissions. When FB asks me to agree on granting access for the app, it only askes for my public profile and friendlist. All the other stuff works pretty well and I receive a auth_token as well.

I'm using the PHP SDK.


Solution

You are most likely trying to set the permission in the app settings when you should be setting it in the scope while coding your application.

$params = array(
  'scope' => 'read_mailbox',
  'redirect_uri' => 'https://www.myapp.com/post_login_page'
);

$loginUrl = $facebook->getLoginUrl($params);

https://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/



Answered By - phwd
  • 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