Invalid Scopes public_actions error on facebook api integration in codeiginiter
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I m trying to integrate Facbook signin API
in my Web Application using codeignitor
. I just need user id
, name
and Email
.
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 use signin 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
php facebook codeigniter
add a comment |
I m trying to integrate Facbook signin API
in my Web Application using codeignitor
. I just need user id
, name
and Email
.
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 use signin 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
php facebook codeigniter
You get that error because you are asking for publish_actions permission. Don't ask for the permission and you will not get the error. You also need email permission to get email
– WizKid
Nov 23 '18 at 22:10
Best copy and paste the error into your question, rather than use an image, because the link might later break.
– bcperth
Nov 23 '18 at 22:45
Sir here is code i m requesting for feilds if ($this->facebook->is_authenticated()) { // User logged in, get user details $user = $this->facebook->request('get', '/me?fields=id,first_name,last_name'); if (!isset($user['error'])) { $data['user'] = $user; $this->setSession($data); redirect(base_url()); }else{ echo 'user not set'; } }
– dua fatima
Nov 28 '18 at 9:33
add a comment |
I m trying to integrate Facbook signin API
in my Web Application using codeignitor
. I just need user id
, name
and Email
.
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 use signin 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
php facebook codeigniter
I m trying to integrate Facbook signin API
in my Web Application using codeignitor
. I just need user id
, name
and Email
.
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 use signin 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
php facebook codeigniter
php facebook codeigniter
edited Nov 28 '18 at 9:31
dua fatima
asked Nov 23 '18 at 19:52
dua fatimadua fatima
13
13
You get that error because you are asking for publish_actions permission. Don't ask for the permission and you will not get the error. You also need email permission to get email
– WizKid
Nov 23 '18 at 22:10
Best copy and paste the error into your question, rather than use an image, because the link might later break.
– bcperth
Nov 23 '18 at 22:45
Sir here is code i m requesting for feilds if ($this->facebook->is_authenticated()) { // User logged in, get user details $user = $this->facebook->request('get', '/me?fields=id,first_name,last_name'); if (!isset($user['error'])) { $data['user'] = $user; $this->setSession($data); redirect(base_url()); }else{ echo 'user not set'; } }
– dua fatima
Nov 28 '18 at 9:33
add a comment |
You get that error because you are asking for publish_actions permission. Don't ask for the permission and you will not get the error. You also need email permission to get email
– WizKid
Nov 23 '18 at 22:10
Best copy and paste the error into your question, rather than use an image, because the link might later break.
– bcperth
Nov 23 '18 at 22:45
Sir here is code i m requesting for feilds if ($this->facebook->is_authenticated()) { // User logged in, get user details $user = $this->facebook->request('get', '/me?fields=id,first_name,last_name'); if (!isset($user['error'])) { $data['user'] = $user; $this->setSession($data); redirect(base_url()); }else{ echo 'user not set'; } }
– dua fatima
Nov 28 '18 at 9:33
You get that error because you are asking for publish_actions permission. Don't ask for the permission and you will not get the error. You also need email permission to get email
– WizKid
Nov 23 '18 at 22:10
You get that error because you are asking for publish_actions permission. Don't ask for the permission and you will not get the error. You also need email permission to get email
– WizKid
Nov 23 '18 at 22:10
Best copy and paste the error into your question, rather than use an image, because the link might later break.
– bcperth
Nov 23 '18 at 22:45
Best copy and paste the error into your question, rather than use an image, because the link might later break.
– bcperth
Nov 23 '18 at 22:45
Sir here is code i m requesting for feilds if ($this->facebook->is_authenticated()) { // User logged in, get user details $user = $this->facebook->request('get', '/me?fields=id,first_name,last_name'); if (!isset($user['error'])) { $data['user'] = $user; $this->setSession($data); redirect(base_url()); }else{ echo 'user not set'; } }
– dua fatima
Nov 28 '18 at 9:33
Sir here is code i m requesting for feilds if ($this->facebook->is_authenticated()) { // User logged in, get user details $user = $this->facebook->request('get', '/me?fields=id,first_name,last_name'); if (!isset($user['error'])) { $data['user'] = $user; $this->setSession($data); redirect(base_url()); }else{ echo 'user not set'; } }
– dua fatima
Nov 28 '18 at 9:33
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452277%2finvalid-scopes-public-actions-error-on-facebook-api-integration-in-codeiginiter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment |
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
add a comment |
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
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
answered Nov 28 '18 at 11:16
dua fatimadua fatima
13
13
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452277%2finvalid-scopes-public-actions-error-on-facebook-api-integration-in-codeiginiter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You get that error because you are asking for publish_actions permission. Don't ask for the permission and you will not get the error. You also need email permission to get email
– WizKid
Nov 23 '18 at 22:10
Best copy and paste the error into your question, rather than use an image, because the link might later break.
– bcperth
Nov 23 '18 at 22:45
Sir here is code i m requesting for feilds if ($this->facebook->is_authenticated()) { // User logged in, get user details $user = $this->facebook->request('get', '/me?fields=id,first_name,last_name'); if (!isset($user['error'])) { $data['user'] = $user; $this->setSession($data); redirect(base_url()); }else{ echo 'user not set'; } }
– dua fatima
Nov 28 '18 at 9:33