top of page
  • Black Facebook Icon
  • Black Twitter Icon
  • Black Instagram Icon
  • Black YouTube Icon

What You Need to Know About Facebook API Delete Post Functionality

  • snehadbuyrhizat
  • Aug 18, 2023
  • 6 min read


I am new to using the Facebook API and just started playing around with it.I was wondering if it is possible, for example an app, to delete past posts (that exists on the timeline, i.e, Can an app have the functionality to delete posts that exists before the app was started?)




facebook api delete post




Can someone tell me how can I delete my own posts in facebook by id using PHP , graph APII'd searched in google but I didn't find anything :(


I started researching this because I wanted to be able to delete a comment on the wall of a Facebook Event, because the "Remove post" doesn't seem to be applicable to comments on an Event wall. However, since I don't know if it is even possible I decided to see if I could mannually delete a post I made to my own wall first since that is possible. Note I am NOT using any SDK; I am just building the URL and entering it in the address bar in Firefox v3.6.17.


This deletion is done by simply calling a delete method on the resource ID. Using, for instance, a curl/file_get_contents on [ID]?method=DELETE&access_token=[TOKEN] where [ID] is the photo id and [TOKEN] the access token for the user-application pair.


Facebook was under fire for making its process of taking down a photo, comment or like rather convoluted. The same applied to those who wanted to delete their account altogether and might unknowingly leave a digital footprint, such as a message sent to someone still active on the platform.


If you tap Manage Your Posts, a new menu will appear with options for All posts; Text updates, check-ins, notes and more; Photos and videos; and Posts from other apps.


If you prefer to use Facebook on the web, perhaps because you like a larger screen on which to see content and a full-size keyboard to type out your posts, the following is how to delete a bunch of old posts.


After you've created or drafted a social post in HubSpot or using the HubSpot mobile app, you can return to edit it later. While you cannot edit a social post that has already been published, you can clone the post, make any additional edits, then republish the new post. Learn more about reviewing your published social posts.


The Oktopost API provides programmatic access to read and write Oktopost data. The following docs describe the resources that make up the API. If you have any questions please contact us.


All API requests must be authenticated using Basic HTTP Auth. Authentication is performed using an Oktopost Account Id as the username and an API Key as the password. Both values can be found on the My Profile tab in your account.


The API uses conventional HTTP response codes to indicate success or failure of an API call. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing or the API key was wrong), and codes in the 5xx range indicate an error on the Oktopost side.


The eid represents your internal system identifier. If left empty, this field will simply be ignored. If used, you will not be able to use it again for account creation but, you will be able to search, get and update accounts using it instead of the standard Oktopost account id.


Advocates are employees or other individuals who promote a company on social media channels. In Oktopost, advocates are system users and members of the advocacy board. The following endpoint allows you to get, list, add and delete advocates from the social advocacy board.


Board topics allow advocates to choose which messages they want to share thematically. Oktopost users can assign topics to messages on the board, while advocates can view and filter messages by topic. You can use this endpoint to list, create, update, and delete topics.


The Employee Advocacy Board is a platform where advocates can share posts on their social media channels. Each board contains information on users who signed up as advocates and messages that were shared with them. This endpoint allows retrieving social advocacy boards from Oktopost and their configurations.


With Oktopost, you can quickly export reports and dashboards from your account and share them with your colleagues inuser-friendly formats or send them to external reporting systems. You can use this endpoint to view exported files fromyour account.


A campaign is an organized collection of posts dedicated to a specific marketing activity or topic. Every post scheduled via the platform is assigned to a specific campaign in the system. The following endpoint can be used to read, create, update and delete campaigns.


Every link shared through the platform is shortened by the okt.to link shortener. Each click record represents a user who clicked on an okt.to link. A click record contains information about the post, campaign, user browser, user device, and user location. The following endpoint can be used to retrieve clicks and conversions data from your account.


A CNAME is a type of entry within the Domain Name System (DNS) that specifies where someone can find your website. Oktopost uses custom CNAME records to track social clicks. A CNAME is set up as part of the integration setup. With this endpoint, it's possible to list, add, update or delete CNAME Records.


A conversion is any action a user takes that has value for your business, from filling out a web form to downloading a white paper. This JavaScript endpoint allows you to send conversion events to Oktopost directly from the users' browser without using external tracking codes.


Oktopost's integrations provide a way to directly connect social engagement data with a CRM or marketing automation platform. The following endpoint allows to list, get and remove existing integrations.


Lead activities are social interactions (reactions, shares, clicks, comments, mentions, etc.) that the platform was able to associate with a specific person. This endpoint can be used to list and delete lead activities.


Links are hyperlinks to web pages that were shared in social media posts published via the platform. Every shared link is shortened by the okt.to link shortener. With this endpoint, it's possible to list, update or get links by hash.


Media contain all images and videos that have been shared from the platform and currently stored in the Media Library. The following endpoint allows you to get, list, create and delete media assets.


If your file weighs more than 10 MiB, Oktopost will try to download it in chunks. If one of the chunked requests fails, the system will retry to download it up to 5 times before failing the entire request.


A message is the content of a post, which includes text and a link or image attachment. On the platform, each message can be published multiple times in separate posts. The following endpoint allows you to read, create, update and delete messages from the account.


A social media post is a Message that was scheduled or sent on a specific date, to a specific social profile. The following endpoint allows you to list, create, update and delete posts from your account.


Post analytics provides data on the reach, impressions, engagements and conversions generated by a specific social media post. The following endpoint allows retrieving the most updated Post's and Social Post's analytics by Ids.


This result will list all the available groups or pages that the user can add to Oktopost. Note that a user may manage pages that he does not wish Oktopost to have access to. It is your responsibility to present the user with a choice of pages to select from.


Once the user has selected the groups or pages they want to add, you will need to submit the list of comma separated Ids, based on the Id field from the previous response, back to Oktopost along with the token provided to you with the previous response.


By default, the user will be redirected to the Oktopost dashboard. If you wish to redirect the user to any other page within the platform you can add a _redirect parameter to the URL with the desired path, as such:


Oktopost sends out email alerts when certain events happen in a user account according to each user's notification settings. This endpoint will list and update the authenticated user's email notification settings.


Every workflow in Oktopost has steps that define the users who need to approve the content and if everyone or anyone can approve before the item proceeds to the next step. Once all steps are exhausted, the item will be approved. You can use this endpoint to get information about the workflow steps and their definitions.


Make sure to set the Content-Type header to application/json.If you plan to sponsor this post later, make sure you set shareContent.ShareMedia.landingPage and shareContent.ShareMedia.title when you create the post.


Do not send null-equivalent targetAudience.targetedEntities objects where no targeting entity URNs are provided. If you do not want to target a UGC post, do not include the targetAudience field. See the following examples for null-equivalent targeting that is not supported.


Dark UGC Posts are used to create content that will not appear as organic content on a LinkedIn company page. Dark posts can be used in Ad Campaigns as Direct Sponsored Content (DSC). See our Direct Sponsored Content Overview for more information.


To retrieve a UGC Post, provide the context in which the user generated content is being viewed. ViewContext can be either AUTHOR or READER. You can retrieve UGC posts by URNs: ugcPostUrn (urn:li:ugcPost:id) or shareUrn (urn:li:share:id).


You can also pass an optional param sortBy=CREATED or sortBy=LAST_MODIFIED to author finder which will sort UGC posts based on created timestamp field (created.time) or lastModified timestamp field (lastModified.time) in descending order (most recent to least recent). Without this param, by default, it is set to sortBy=LAST_MODIFIED. 2ff7e9595c


 
 
 

Recent Posts

See All
Beamng drive baixar para android

BeamNG.drive: The Ultimate Crash Simulator para PC e Android Se você adora jogos de direção que permitem que você bata seu carro de...

 
 
 

Comments


Contact

Representation

Commercial Agent

Magnum - Steven Macfee

Email - info@mysite.com

Tel - 123-456-7890

  • White Facebook Icon
  • White Twitter Icon
  • White Instagram Icon
  • White YouTube Icon

Manager

Bruce Robertson

Email - info@mysite.com

Tel - 123-456-7890

SF Agent

Pinnacle - Nathan Kelly

Email - info@mysite.com

Tel - 123-456-7890

© 2023 by Daniel Martinez. Proudly created with Wix.com

bottom of page