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

Cannot connect to Facebook to automatically publish posts to a page #9924

Closed
osullivanchris opened this issue May 23, 2019 · 5 comments · Fixed by #10376
Closed

Cannot connect to Facebook to automatically publish posts to a page #9924

osullivanchris opened this issue May 23, 2019 · 5 comments · Fixed by #10376
Assignees

Comments

@osullivanchris
Copy link

Expected behavior

Connect to my Facebook page so that my Wordpress posts also publish to my Facebook page

Actual behavior

When connecting to a Facebook page, after the flow is complete a toast appears saying 'An Error occured' and it does not seem to have been successful

Steps to reproduce the behavior

  1. In the Android app, go to a site
  2. Choose sharing under configuration near the bottom
  3. There is the option to automatically share on networks. Choose Facebook.
  4. Tap the 'connect' button below the information
  5. Go through flow the Facebook steps (login/continue, choose the page to use with wordpress, choose what wordpress is allowed to do)
  6. See message 'you've now linked Wordpress to Facebook', which makes it seem like we've been successful
  7. Returning to the same screen as step 4 within wordpress, a toast message appears saying 'An error has occured'
Tested on [device], Android [version], WPAndroid [version]

A user reported on ticket 2047729-zen
I have verified the same issue is happening to me on a Google Pixel 3a, Wordpress for Android v 12.4, Android version 9

Related ticket

#8715
But in that case the user has no Facebook pages. In this case, even when having a Facebook page an error occurs.

user screenshot

@osullivanchris
Copy link
Author

Noting that the user who reported this issue was an admin on a public Facebook page. They were able to connect successfully on the desktop/web version.

@josimarcordeiro
Copy link

Automatic sharing on social networks is one of the most important features of the App. The error reported above is preventing the use of this incredible feature.

Is there any forecast to correct the above error?
Thank you.

@shiki shiki assigned shiki and unassigned shiki Jul 19, 2019
@shiki
Copy link
Member

shiki commented Jul 19, 2019

PR #10251 adds a friendlier error message if there is no page. As for this issue, I could not reproduce it. I can reproduce the error if:

  • The Facebook account has no Pages.
  • The Facebook account has Pages but did not select them during the connection flow.

If I select a Page, I can always consistently link with Facebook.

@marecar3
Copy link
Contributor

marecar3 commented Jul 22, 2019

Hey, @osullivanchris @Josimarcsilva I would like to add one more case which has happened to me.

In short, there is a case where the desired scenario won't work if the page isn't published. Here is the full description: #10251 (comment).

cc: @shiki

@malinajirka malinajirka self-assigned this Aug 12, 2019
@malinajirka
Copy link
Contributor

I was able to reproduce this issue when I set "Don't keep activities" in the developer settings.

  1. My Site
  2. Sharing
  3. Facebook
  4. Connect
  5. Enter your Facebook credentials
  6. The Webview asks you to provide 2-fa code
  7. Switch to the Facebook app and get the code [in case your account isn't 2-fa protected, just move another app into foreground and then bring the WordPress app back]
  8. Finish the FB login and give the app access to at least one published fb page
  9. An error occurs

I created a fix in #10376.

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