-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facebook publicize connection keeps failing #8715
Comments
That sounds like a great solution, @malinajirka. If I recall correctly I thought we didn't get a profile back at all if there was no pages. Looks like that's not the case. |
Tested and confirmed (11s) using WPAndroid alpha-156 (12.0 alpha) on Pixel 3 Android 9. In my case I tested with a Facebook account that has a Page that is unpublished in Facebook > Page > Settings > General > Page Visibility (screenshot). I couldn't get the app logs to save for some reason (or I missed them) but I caught a screenshot: |
This came up again in 12.3 beta testing. I found that I was unable to connect Facebook or LinkedIn—the result was the same for each: "An error occurred". My test Facebook account does have a Page but it is unpublished (screenshot). Video: 4m39s app-log-to-connect-LinkedIn-and-Facebook-sharing-services.txt
(internal reference: p5T066-Pl-p2) |
Here is a ticket with a user experiencing this issue. Getting more info from the user to understand the issue 2047729-zen. |
@osullivanchris 2047729-zen mentions a different case because they are trying to connect a Facebook account with a page whereas this bug is about trying to connect a Facebook account with no pages. If you can open a new issue with a quick list of steps to reproduce then I will check it out! |
The LinkedIn failure does not seem to be related to the Facebook error. I created a separate issue for it: #10252. |
Related to #8115
Expected behavior
When the user tries to connect a Facebook account with no pages to their site the app displays meaningful error with explanation why it can't connect to the account.
Actual behavior
When the user tries to connect a Facebook account with no pages to their site the app displays generic error which isn't very helpful.
Steps to reproduce the behavior
Notes
I think the issue is on the following line -> we don't show the chooser dialog when there is exactly one connection and we assume this connection will work. However, if this is a User Profile connection and the service (such as Facebook) doesn't support other than external connections, it'll fail with meaningless error message.
I think we should modify the check to
if (... || jsonConnectionList.length() == 0)
and here propagate a specific error to the UI and show a meaningful message.cc @kwonye
The text was updated successfully, but these errors were encountered: