Python Forum
DELETE Post using Python FaceBook Graph API - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: DELETE Post using Python FaceBook Graph API (/thread-36739.html)



DELETE Post using Python FaceBook Graph API - BIG_PESH - Mar-24-2022

Hey All,

I'm currently programming a Facebook auto poster using the FaceBook Graph API (Facebook-SDK 3.1.0)with Python 3.10.

I have it posting an image and a status to a group with the below code...

graph.put_object(group, 'photos', message=message, url=image)
The problem I'm having is making it DELETE a post.

graph.delete_object(id=final_id)
When this is ran, I get the below error...

Error: (#200) The user hasn't authorized the application to perform this action
My FB app has the below permissions...

user_events
user_photos
user_posts
user_managed_groups
groups_show_list
pages_manage_cta
pages_show_list
publish_to_groups
groups_access_member_info
attribution_read
pages_read_engagement
pages_read_user_content
pages_manage_posts
pages_manage_engagement
public_profile

Just wondering if anyone has come across this before and got it working or deleted a post in some other way?

Thanks in advance