1👍
✅
Try placing the entire function
def post_facebook_message(fbid, recevied_message):
....
outside of the BotsView class. If you keep it within the class, it must take in “self” as its first parameter and they must be accessed within the class as
self.post_facebook_message(.....)
However, it might not be the best thing to put this function in the Django View Class.
p.s – Thanks for this, I will update the tutorial to make this point explicit.
Source:stackexchange.com