Python Forum
DELETE Post using Python FaceBook Graph API
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DELETE Post using Python FaceBook Graph API
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to accept facebook cookies using python selenium? pablo86ad 0 211 Apr-06-2024, 09:19 PM
Last Post: pablo86ad
  Issues Scraping Facebook using facebook_scraper DustinKlent 4 3,673 Mar-19-2024, 08:17 PM
Last Post: Mostafa_heikal
  Delete multiple comments with a single API call (facebook) Ascalon 0 2,326 Dec-04-2021, 08:33 PM
Last Post: Ascalon
  delete post xtc14 0 1,210 Jul-31-2021, 01:10 AM
Last Post: xtc14
  Python modules to extract data from a graph? bigmit37 5 22,455 Apr-09-2021, 02:15 PM
Last Post: TysonL
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,589 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  How to add an image to an existing facebook post using python graph API? Ascalon 0 2,239 Dec-01-2020, 08:33 PM
Last Post: Ascalon
  Python I/O: input a graph anata2047 4 2,839 Jun-19-2020, 01:02 PM
Last Post: deanhystad
  delete a Python object that matches an atribute portafreak 2 2,193 Feb-19-2020, 12:48 PM
Last Post: portafreak
  Graphing three database in one graph Python r_e 1 2,382 Jun-20-2019, 05:10 PM
Last Post: r_e

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020