Giter Club home page Giter Club logo

facebook-login's People

Contributors

clementduncan avatar craigiswayne avatar elvishp2006 avatar ie76 avatar krewmarco avatar sdether avatar timersys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

facebook-login's Issues

Default Avatar settings bugged

When you log in through Facebook (and you're a site admin) the WP Admin -> Setting -> Discussion -> Default Avatar settings are bugged. All the options become your Facebook avatar. See screenshot.

default-avatar

WP's admin-ajax.php returns Invalid User

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"}

error_wp

Custom Registration Fields

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

Create disconnect button

Create a button link or something that let user's remove entirely their facebook connection and avatar from system

Email access not asked for

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!

Ability to change the size of the button

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.

Above login input fields

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.

Create a connect button

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)?

Problem using periods in user names

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).

bp-user-profile

In conclusion, I would propose maybe using hypens (-) or underscores (_) or nothing in between first and last name when generating usernames.

Two spinners

Don't know why, but there are now two spinny things when logining in.
spinnythings

[QuickFix] Login Error: "We need your email in order to continue. Please try loging again.

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.

Russian Names

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?

BuddyPress Users Can't Change Their Avatar

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!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.