Closed jstdk closed 1 month ago
@jstdk this is not an issue of this plugin. Facebook has been disabled the login flow for localhost and http pages
Thanks @darwin-morocho, I saw the warnings in console previously, but did not know it was blocked . Thanks.
@darwin-morocho, I have moved to an https and can now fully complete the consent screen. Unfortunately, still only an "Instance of access token" response, even when I add a new developer account to the app for testing. My business is verified and advanced permissions are granted. Are you sure the plugin works fine?
Looks like a state management thing to me, as like the await is not properly respected on web.
final LoginResult result = await FacebookAuth.instance.login(
permissions: ["public_profile, pages_show_list, pages_messaging"]);
print(result);
if (result.status == LoginStatus.success) {
FacebookPermissions? permissions =
await FacebookAuth.instance.permissions;
print(permissions);
dynamic test = FacebookAuth.instance.getUserData();
print(test);
print(result.accessToken!);
} else {
print(result.status);
print(result.message);
}
Instance of 'LoginResult' Instance of 'FacebookPermissions' Instance of '_Future<Map<String, dynamic>>' Instance of 'AccessToken'
What version are you using?
6.1.1
What OS and version are you using to local deploy your application?
Linux Mint 21.3
What platforms are you seeing the problem on?
web
pubspec.yaml
Describe the Bug
On Sunday it worked fine. Without any changes, on Monday I do not receive an access token anymore, only an "Instance of AccessToken"
Expected Behavior
Recieve an access token
To Reproduce
Relevant log output
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
Info.plist (macOS)
No response