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

what is the API code? #3

Open
xixiaofinland opened this issue Sep 21, 2017 · 5 comments
Open

what is the API code? #3

xixiaofinland opened this issue Sep 21, 2017 · 5 comments

Comments

@xixiaofinland
Copy link

xixiaofinland commented Sep 21, 2017

Hi,

I try to figure out what API code to fill in, but couldn't.

  1. I go to https://developers.facebook.com/tools/explorer,
  2. use "get user access token" to retrieve the token and insert into the python script
  3. script throws error The user hasn't authorized the application to perform this action, retries remaining: 0

Do I need to grant specific permissions before hitting "get user access token" button?

Thanks,
Xi

@tshrinivasan
Copy link
Owner

tshrinivasan commented Sep 21, 2017 via email

@xixiaofinland
Copy link
Author

xixiaofinland commented Sep 21, 2017

I did use the auto generated token (in the access token field) as screenshot below. The error came from it.

screen shot 2017-09-21 at 14 00 55

@xixiaofinland
Copy link
Author

Here is the code, blank lines were cut off so it fits in one screenshot.
The group ID is from a group I recently created.
I also tried with another group that I belong to and have permission to post, but the error is the same.

screen shot 2017-09-21 at 14 08 56

Error stack

Posting to http://www.facebook.com/groups/1667747819923309
WARNING:root:Exception on https://graph.facebook.com/1667747819923309/feed: [200] (#200) The user hasn't authorized the application to perform this action, retries remaining: 0
Traceback (most recent call last):
  File "post_to_fb_groups.py", line 22, in <module>
    graph.post(path =str(group_id) + '/feed', message=message)

@shynigami
Copy link

posting the same message to all groups you manage at once would not be allowed - it would be autoposting and prefilling, both not allowed according to the platform policy. and the question was about access to groups you are a member of, not only groups you manage.

@ShinNinth
Copy link

@Xixiao007 I ran in to this same issue it is a permission I am unsure exactly which as i just turned them all on and it began working correctly. best bet is to trial and error it or turn them all one =/

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

4 participants