Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Facebook login error
currently login into Facebook on my form i get this error
Invalid Scopes: publish_stream. 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
0
Comments
i get this error when i want to log into Facebook through a vanilla forum i have
Invalid Scopes: publish_stream. 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
update class.facebook.plugin.php in /plugins/facebook and modifi this line 540
$FBScope = C('Plugins.Facebook.Scope', Array('email','publish_stream'));
for this
$FBScope = C('Plugins.Facebook.Scope', Array('email','public_profile'));
This is the error i get on screen
Whenever you see something like this
C('Some.Config.Setting', 'ThisIsJustTheDefault');
in the source, Vanilla tries to get a config entry from/conf/config-defaults.php
and/conf/config.php
that looks like this:$Configuration['Some']['Config']['Setting'] = ...;
. TheThisIsJustTheDefault
part is the value that will be returned if there is no such config setting.In your code snippet, this means, that the variable $FBScope should be set with the config setting in config.php that reads
$Configuration['Plugins']['Facebook']['Scope']
. If there is no such setting it looks for the same setting in config-defaults.php. If even that does not exists, it uses the defaultArray('email','publish_stream')
The essence is: instead of changing the code, you can (and really should) simply add
$Configuration['Plugins']['Facebook']['Scope'] = Array('email','public_profile');
to your
/conf/config.php
worked thanks @R_J i just had to insert
>$Configuration['Plugins']['Facebook']['Scope'] = Array('email','public_profile');
in my/conf/config.php
Credits go to @marianoo who provided the correct information!
I've only wanted to show that in this case using the config.php is possible and there is no need for changing the plugin.
@marianoo thanks too
SUBLIME dude. Thx a lot for this.
Works for me too!!
It worked for me too.
But when I try to register with Facebook it asks me for a Username and an e-mail, what could it be?
It's the information you want to have used by the community. For example you might want a different username/email then what was used previously
On a side note, we did identify the issue with publish_stream internally and a fix is in Github. The new scope is publish_actions which allows Automatic Social Share to work
Nice! That feature would be great.
@Adrian Is there a way to register with Facebook without filling the e-mail and username?
I have the verify e-mail option enabled, I don't know if that's the reason (hopefully it's not).
Depending on the version if the Facebook plugin, and I forget which one it is, but the latest from Github lets you have users have their Facebook username as Vanilla Forums username. The email is still needed though, because how will you get notifications
I see. I though it got the e-mail from the facebook account.
Some social networks like twitter don't give out emails, for good reason. It is always worth registering an confirm the email separately, and better for the user. Facebok Connect is a login authority system, it is isn't an email verification service.
grep is your friend.
Makes sense