[go: nahoru, domu]

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

Add better error message for Facebook connection #10251

Merged
merged 8 commits into from
Jul 19, 2019

Conversation

shiki
Copy link
Member
@shiki shiki commented Jul 18, 2019

Fixes #8715.

This adds handling for when connecting a Facebook account with no selected Pages. The error message is propagated from PublicizeActions to PublicizeListActivity. The error message string was taken from the iOS app:

Here is what this PR changes:

Before After

I chose to handle Facebook for now. Twitter and Tumblr seem to work fine without any other requirements other than an active account. It looks like iOS adds special handling only for Facebook too.

LinkedIn connections currently do not work and the issue is reported in #10252.

Big thanks to @malinajirka for pointing me in the right direction with his description in #8715.

Testing

  1. Go to Sharing → Facebook
  2. Click on Connect.
  3. Try to connect a Facebook account with and without a Page.

Reviewing

Only 1 reviewer is needed but anyone can review.

Release Notes

  • If there are user-facing changes, I have added an item to RELEASE-NOTES.txt.

This message was copied from iOS.
This exception handling is only for Facebook. Based on iOS, it doesn’t look like we need to handle the other service types.
Show an alert when the Facebook account cannot be linked because there are no Pages.
I didn’t realize there was already a “Learn more” link in the page.

┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻
@shiki shiki added this to the 13.0 milestone Jul 18, 2019
@shiki shiki changed the title Issue/8715 facebook error message Add better error message for Facebook connection Jul 19, 2019
@shiki shiki marked this pull request as ready for review July 19, 2019 00:31
@shiki shiki requested review from marecar3 and nbradbury July 19, 2019 00:31
@marecar3
Copy link
Contributor
marecar3 commented Jul 19, 2019

Hey @shiki nice work here!!! :) 🎉

I am experiencing some strange behavior with my account and maybe you can help me with it. I tried to connect with FB account that has one page and it gives me an error.

Here is the video:
ezgif com-video-to-gif (7)

FB screenshot:

Screen Shot 2019-07-19 at 12 50 04 PM

Do you think that I am missing something in the process or my account has a bad configuration for that page? I am not sure why it's not working.

@shiki
Copy link
Member Author
shiki commented Jul 19, 2019

Do you think that I am missing something in the process or my account has a bad configuration for that page? I am not sure why it's not working.

@marecar3 Thanks for the report. The looks like a legit bug. I'm not sure why that is. I'll do some digging. 🤔

@marecar3
Copy link
Contributor

Do you think that I am missing something in the process or my account has a bad configuration for that page? I am not sure why it's not working.

@marecar3 Thanks for the report. The looks like a legit bug. I'm not sure why that is. I'll do some digging. 🤔

If you need my account, I can share it you over DM :)

Copy link
Contributor
@marecar3 marecar3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work here @shiki!
LGTM!!! 🎉

@shiki shiki merged commit b960cfd into develop Jul 19, 2019
@shiki shiki deleted the issue/8715-facebook-error-message branch July 19, 2019 18:25
@shiki
Copy link
Member Author
shiki commented Jul 19, 2019

For anyone that ends up here in the future. The reason for Marko's error described in #10251 (comment) was because the Facebook Page was configured as Not Published in that Page's settings.

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

Successfully merging this pull request may close these issues.

Facebook publicize connection keeps failing
3 participants