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

Attempt to fix Facebook auth scopes (#264) #346

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

pbek
Copy link
Contributor

@pbek pbek commented Oct 25, 2020

No description provided.

@pbek
Copy link
Contributor Author

pbek commented Oct 25, 2020

Follow up from #345.

Have you tried authing with Facebook with the new app scope?

I now have setup my own build and docker deployment process so I can test on my server.
After the painful configuration at https://developers.facebook.com (and successifuly receiving an auth token) I'm one step further.

ERRO[0993] [Facebook 2]: Error: [message:(#200) If posting to a group, requires app being installed in the group, and \
          either publish_to_groups permission with user token, or both pages_read_engagement \
          and pages_manage_posts permission with page token; If posting to a page, \
          requires both pages_read_engagement and pages_manage_posts as an admin with \
          sufficient administrative permission] [type:OAuthException] [code:200] [subcode:0] 

So yes, the scopes are working.

@pbek
Copy link
Contributor Author

pbek commented Oct 25, 2020

@muesli, is the Facebook Hive capable of posting to a Facebook page? Because that's what I'm trying to achieve. 😀

@pbek
Copy link
Contributor Author

pbek commented Oct 25, 2020

It seems like pages are a different thing, you need a page access token, https://developers.facebook.com/docs/pages/publishing.

@muesli
Copy link
Owner

muesli commented Oct 25, 2020

I must admit I've kinda stopped using Facebook personally, but have so far only used it to post on my personal page - which Facebook now doesn't permit anymore.

Posting to pages via the API should still be doable, though. We may or may not have to adapt to their newer API versions.

@pbek
Copy link
Contributor Author

pbek commented Oct 25, 2020

Facebook posting was always kind of flaky (back a few years ago when I wrote my own publishing integration) since access tokens seem to expire from time to time...

@muesli muesli merged commit 4cb87ec into muesli:master Oct 26, 2020
@muesli
Copy link
Owner

muesli commented Oct 26, 2020

Thank you, @pbek!

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.

2 participants