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

Friday, February 11, 2022

[FIXED] App in facebook Require Approval?

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

Issue

Scenario is like this:

  1. I have created an app in facebook say myApp.

  2. I have integrated facebook login in my website say mywebsite.com.

  3. I am intended to fetch user's "education_history" ,"work_history" ,"books" , "music".

  4. I am not asking permissions for writing anything on user's facebook wall.

Here the problem.

I am able to fetch required information from facebook only when I logged in ( myapp created on my account only ) but when someone else try to login to mywebsite.com through facebook then I get only his public profile nothing else.

Why is it so ? What I am missing. All permissions are correct.

Thanks for help

EDITED :

Code for login URl :

// Return facebook or linkedIn login url public function loginurl(){

// It is facebook

    $login_url_params = array(

            'scope' => 'email,user_actions.book,user_actions.fitness,user_actions.music,user_actions.news,user_actions.video,user_education_history,user_groups,user_hometown,user_interests,user_likes,user_website,user_work_history',
            'redirect_uri' => 'http://localhost/users/store/fb/'
        );


$login_url = $this->facebook->getLoginUrl($login_url_params);

echo "<a href=" . $login_url.'>Login</a>';



    } 

Solution

You should get a warning when you authorize some specific permissions as App Admin/Developer, telling you to review them:

Apps requesting more than public_profile, email and the user_friends permission must be reviewed by Facebook before those permissions can be requested from people

Here´s more information about the review process: https://developers.facebook.com/docs/apps/review

Localhost will only work for you, but not for other users. Except you are trying with another user on your computer, of course.



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