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 Connection Issue #59

Open
masonry47 opened this issue Dec 30, 2024 · 3 comments
Open

Facebook Connection Issue #59

masonry47 opened this issue Dec 30, 2024 · 3 comments

Comments

@masonry47
Copy link

Describe the bug

Hi there,

We are having an issue adding an additional Facebook account. Awhile back we had previously successfully created the app on the Facebook side and configured the provider and added 2 different Facebook accounts (which we were invited in as Admins). All has worked as expected. We are now trying to add a third account, so we think all we need to do is be invited in as an "admin" to this additional account, which we have, and then just go add the new account with the page id. But we get this when trying to "connect".

2024-12-30 15:35:07 [ERROR] Couldn’t connect to Facebook Required parameter not passed: "code" - /public_html/releases/154553401c13ec0cfc8716252e5642dcd63d143d/vendor/league/oauth2-client/src/Tool/RequiredParameterTrait.php: 35.
2024-12-30 15:35:07 [ERROR] Facebook Response: Required parameter not passed: "code"
2024-12-30 15:35:07 [INFO] Request context:
$_GET = [
    'p' => 'admin/actions/social-poster/accounts/connect'
    'accountId' => '9'
    'error_code' => '100'
    'error_message' => 'Invalid Scopes: publish_to_groups. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions'
]

$_POST = []

Thanks!

Steps to reproduce

  1. Facebook Provider was previously configured
  2. Click "New Account"
  3. Save
  4. Connect

Craft CMS version

4.13.5

Plugin version

3.0.2

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

So that'll be due to Facebook removing publish_to_groups, which we addressed in 4.0.12, and I'll note that's a bit behind the 3.0.2 release you're on (which doesn't exist, so maybe a typo?)

@masonry47
Copy link
Author

Thanks for the info, that is strange, it must have been something we did on accident?

Screenshot 2024-12-31 at 9 44 56 AM

Yes we saw that note about Facebook groups, but didn't know if this part was a separate issue

2024-12-30 15:35:07 [ERROR] Couldn’t connect to Facebook Required parameter not passed: "code" - /public_html/releases/154553401c13ec0cfc8716252e5642dcd63d143d/vendor/league/oauth2-client/src/Tool/RequiredParameterTrait.php: 35. 2024-12-30 15:35:07 [ERROR] Facebook Response: Required parameter not passed: "code"

Thanks so much!

@engram-design
Copy link
Member

Oh, my mistake 3.0.2 does exist, but it’s about 2 years old now.

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

No branches or pull requests

2 participants