Skip to content
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

Closed
malinajirka opened this issue Dec 3, 2018 · 6 comments · Fixed by #10251
Closed

Facebook publicize connection keeps failing #8715

malinajirka opened this issue Dec 3, 2018 · 6 comments · Fixed by #10251
Assignees

Comments

@malinajirka
Copy link
Contributor

malinajirka commented Dec 3, 2018

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

  1. Try to add a Facebook account with no pages.

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

@kwonye
Copy link
Contributor

kwonye commented Dec 10, 2018

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.

@designsimply
Copy link
Contributor

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

sharing-screen connect-facebook connect-facebook-profile-error

I couldn't get the app logs to save for some reason (or I missed them) but I caught a screenshot:

Screenshot_20190318-111926

@designsimply
Copy link
Contributor

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

Screen Shot 2019-05-03 at 1 10 04 AM   Screen Shot 2019-05-03 at 1 10 49 AM
Tested with WPAndroid alpha-168 on Pixel 3 Android 9 on architectural-worm.wordpress.com Jetpack (and also other sites).

app-log-to-connect-LinkedIn-and-Facebook-sharing-services.txt

71 - [May-03 01:54 SHARING] publicize service > created
72 - [May-03 01:54 SHARING] publicize service > destroyed
73 - [May-03 01:54 SHARING] null
74 - [May-03 01:54 SHARING] StackTrace: com.android.volley.ServerError
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:179)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:114)

75 - [May-03 01:54 UTILS] App goes to background
76 - [May-03 01:54 MAIN] ConnectionChangeReceiver successfully unregistered
77 - [May-03 01:55 UTILS] App comes from background

(internal reference: p5T066-Pl-p2)

@marecar3 marecar3 removed their assignment May 20, 2019
@osullivanchris
Copy link

osullivanchris commented May 23, 2019

Here is a ticket with a user experiencing this issue. Getting more info from the user to understand the issue 2047729-zen.

@designsimply
Copy link
Contributor

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

@shiki
Copy link
Member

shiki commented Jul 18, 2019

The LinkedIn failure does not seem to be related to the Facebook error. I created a separate issue for it: #10252.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants