php - Invalid Scopes public_actions error on facebook api integration in codeiginiter

643

I m trying to integrateFacbook signin API in my Web Application usingcodeignitor. I just needuser id,name andEmail.

According to documentation my requirements do not need any access permission https://developers.facebook.com/docs/facebook-login/permissions/overview/

But when I try to usesignin API its gives me error as below

Invalid Scopes: publish_actions. 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

794

Answer

Solution:

Well i Found an answer in my config/facebook.php file

$config['facebook_permissions']         = array('public_actions','email');

i have chaged this line to

$config['facebook_permissions']         = array('email');

Now its Working Fine for me thank you

People are also looking for solutions to the problem: php - get max value of an Auto Increment column in sql

Source

Didn'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.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.