Parse-SDK-Flutter icon indicating copy to clipboard operation
Parse-SDK-Flutter copied to clipboard

Support Facebook Limited Login

Open tran-huy-phuc opened this issue 1 year ago • 2 comments

New Feature / Enhancement Checklist

Current Limitation

Facebook Login does not support Facebook Limited

Feature / Enhancement Description

When calling loginWith() method to login with facebook, we can pass below built-in facebook (a map):

Map<String, dynamic> facebook(String token, String id, DateTime expires) {
  return <String, dynamic>{
    'access_token': token,
    'id': id,
    'expiration_date': expires.toString()
  };
}

Facebook now have another Facebook Limited version, which is described here: https://docs.parseplatform.org/parse-server/guide/#facebook-authdata

Alternatives / Workarounds

We may be able to pass a map directly to login with Facebook Limited:

ParseUser.loginWith(
            'facebook',
            {
                "id": "user's Facebook id number as a string",
                "token": "a JWT token from Facebook SDK limited login"
            }
);

tran-huy-phuc avatar Aug 01 '24 14:08 tran-huy-phuc

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@thphuccoder Issue fixed? did you find any solution for this?

shafeekghaseel avatar Dec 10 '24 06:12 shafeekghaseel