FileNotFoundError: [Errno 2] No such file or directory: restaurants/access_tokens.sh'

My file access_tokens.sh is missing from the folder

You might be trying to access the file access_token.sh from the wrong directory. Please use linux commands ‘cd’ and ‘ls’ to check whether you are in the right directory or not.
If you are facing the issue in get_access_token definition then please use facebook_post.py as a reference to solve this error. See the answer below as well.

i created a new file with that name

You don’t need to create a new file. Use the existing file only.