timersys / facebook-login Goto Github PK
View Code? Open in Web Editor NEWFacebook login plugin for WordPress
License: GNU General Public License v3.0
Facebook login plugin for WordPress
License: GNU General Public License v3.0
Hello, in version 1.0.9 of Facebook Login, users can't change their avatar using the "Change Profile Photo" feature of BuddyPress. It's stuck on the Facebook avatar, which is be unexpected behavior.
Can you look into it? I think the fix involves using bp_get_user_has_avatar(), but I can't seem to get it to work correctly.
Really need this working. Thank you!!
Got a note from Facebook that Graph API v2.4 will reach the end of its 2-year lifetime on 09 October, 2017.
Can this plugin be upgraded to Graph API v2.5 or higher before things stop working?
https://developers.facebook.com/docs/apps/changelog/
Thanks!
While there is a filter fbl/login_button
for overwriting the button, I think the most common change for themes are related to the size of the button. A filter for the size would make sense.
Hey Damian,
I have a couple mandatory custom fields on my WP and I was wondering if you can help me out to pull out that data through your plugin. So additionally to the username and email I also have first_name, last_name, birthdate and 3 hidden fields with country (predefined), os and language.
Both os and language are have http server strings:
$browser = $_SERVER['HTTP_USER_AGENT'];
if (preg_match('/Linux/',$browser)) $os = 'Linux';
elseif (preg_match('/Win/',$browser)) $os = 'Windows';
elseif (preg_match('/Macintosh/',$browser)) $os = 'Mac';
else $os = 'Unknown';
$lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
if (preg_match ('/en/',$lang)) $langcode = 'en';
elseif (preg_match ('/de/',$lang)) $langcode = 'de';
elseif (preg_match ('/fr/',$lang)) $langcode = 'fr';
elseif (preg_match ('/pt/',$lang)) $langcode = 'pt';
elseif (preg_match ('/es/',$lang)) $langcode = 'es';
elseif (preg_match ('/tr/',$lang)) $langcode = 'tr';
elseif (preg_match ('/nl/',$lang)) $langcode = 'nl';
elseif (preg_match ('/pl/',$lang)) $langcode = 'pl';
elseif (preg_match ('/it/',$lang)) $langcode = 'it';
else $langcode = 'Other';
I would be glad if you could help out. Donation via PayPal will be considered ;) Thx
In the developer console it complains about downloading the sdk js. Of course the FB object is not available and if I click on connect it gives me a ReferenceError.
Error in console: The resource at "http://connect.facebook.net/en_US/sdk.js" was blocked because tracking protection is enabled.
Hi,
First of all - thanks for the plugin. It's really simple and yet useful.
However, I have an issue with the Facebook permission scopes, which don't seem to work properly. When a user tries to register with Facebook, the pop-up window asks the user for access just to his public profile and not to his email, and then throws an error message that the email access is needed as well (which it really is for the purposes of the website).
From what I saw in the plugin files, it should also ask for email permission as well, so I'm not sure why it's not doing that in reality. The only profile that I have successfully connected to Facebook has been my own Facebook profile, which is also the author of the Facebook login app, so it could have taken my email from there - although I'm not sure if that's the actual reason, I'm just guessing here.
Do you have idea why this might be happening?
Thanks!
Hey, on the changelog it says it's possible to changes scopes with the latest version.
I cannot see any reference in the docs of how to it, can you please assist?
When "Facebook Avatars?" option is checked, setting a group avatar doesn't load the image automatically while it does when the "Facebook Avatars?" option isn't checked or the Facebook Login plugin is disabled.
This is using BuddyPress 2.4.2 and it's broken in both Facebook Login 1.0.10 and the current development branch.
Hello, I had someone Facebook login with a Russian name "Натали Вертий" and it made their user name "-" without the quotes.
Their email was still English characters so a suggestion might be to use the first part of the email (before the @ sign) as a backup and of course run it through sanitize_title().
PS: next version going to be released soon?
The current plugin uses periods to concatenate first and last time, but there is a problem with that and BuddyPress. When the username shows up in the user profile the periods are replaced by hyphens. I think this is because periods aren't allowed in certain areas of the URL and BuddyPress uses the username as part of the URL.
This leaves a disconnect for the user between their actual username, first.last, with the username they are using on the rest of the site, first-last. Users can't login with the latter, they have to use the former. I think this creates a lot of confusion (especially since this a generated username, not one they picked for themselves).
In conclusion, I would propose maybe using hypens (-) or underscores (_) or nothing in between first and last name when generating usernames.
Hello,
Your WP config page:
https://timersys.com/facebook-login/docs/configuration/
Instructs users to:
"https://developers.facebook.com/ and click on create new app"
That might have been correct before, but FB has made a lot of changes and there is no "new app" etc to click, so please update your configuration instructions so they are update to FB's developer page.
Thanks!
After authorizing the APP the loading animation in the button keeps running forever because admin-ajax.php from Wordpress returns {"error":"Invalid User"}.
?me
Returned desired data
?api_kei
Returned nothing else than the OK (200) status code as expected.
admin-ajax.php
Returned {"error":"Invalid User"}
Hi,
I know many users are having trouble with the plugin right now. The issue lies in the fact that many apps are secured with the appsecrect_proof parameter as per the FB Documentation.
As a quick fix people can just edit the login_or_register_user() function of wp-facebook-login/public/class-facebook-login-public.php
and modify add_query_arg to also carry the appsecret_proof parameter.
$app_access_token = $_POST['fb_response']['authResponse']['accessToken'];
$app_secret = '<your app secret>';
$appsecret_proof = hash_hmac('sha256', $app_access_token, $app_secret);
// Get user from Facebook with given access token
$fb_url = add_query_arg( array(
'fields' => 'id,first_name,last_name,email,link',
'access_token' => $_POST['fb_response']['authResponse']['accessToken'],
'appsecret_proof' => $appsecret_proof
), 'https://graph.facebook.com/v2.4/'.$_POST['fb_response']['authResponse']['userID'] );
Your plugin will have to probably take this case into account and expose the app_secret field in the settings.
Please let me know if you have any question.
Create a button link or something that let user's remove entirely their facebook connection and avatar from system
Hi,
On my site the plugin doesn't seem to fill in the users first and last name when someone clicks register with Facebook.
Kr,
Just so ya know, there is a conflict with the Lazy Load plugin. When active the spinner will not go away.
Also, it would be better if things were left aligned by default.
Any idea on how I can place the FB login button above the WP username input field?
I tried a few methods but non work.
The setting page is showed in user menus other than administrator role like contributor, author etc
Conversely to creating a disconnect button, what about a connect button for those who are already logged in?
I've notice you can add Facebook login to an account that has the same email as your Facebook account email, but what if a user already logged in and wants to merge the current account with a Facebook account (and the fb account happens to have a different email)?
Avatars are not displayed in Wordpress 5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.