pellaeon / fb-post-bulk-privacy-edit

A script to bulk edit Facebook post privacy settings
72 stars 24 forks source link

Broken due to Facebook or Python updates? #17

Open AndersOhman opened 4 years ago

AndersOhman commented 4 years ago

Hi, I was trying to get this working on a macOS Catalina, but am not having much luck. I was able to get all of the input parameters successfully, including running the GetLongLivedUserAccessToken.py script first, but when running process.py it just displays the "Starting from" string, no errors but no code 200, and then the script stops.

When trying to run on Windows 10 with Python 3.8, I got some invalid syntax messages. It looks like Python 3 changed some syntax - print is now a function and requires parentheses, and httplib was renamed to http.client. Fixing those silenced the syntax errors but led to the same problem as on Mac - it just displays the "Starting from" string, then the code stops.

I was wondering if something about how Facebook handles this request or Python syntax changed since last year, or if it still works for other people and I'm doing something wrong on my end? Thanks very much!

vineenm commented 4 years ago

I'm getting the same issue here.

File "process.py", line 39 print "Starting from "+str(time.gmtime(cur_since)) ^ SyntaxError: invalid syntax

akinnee commented 3 years ago

The docs say python 2. Scripts written for python 2 won't work with python 3. You need to install python 2.

vineenm commented 3 years ago

Thank you! Let me try again later.

On Sat, Jan 30, 2021, 3:56 AM Alex Kinnee, notifications@github.com wrote:

The docs say python 2. Scripts written for python 2 won't work with python

  1. You need to install python 2.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pellaeon/fb-post-bulk-privacy-edit/issues/17#issuecomment-770016560, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARBEM6YBRJQCTAGIBCKYQB3S4MHGTANCNFSM4QSC7NHA .