How to check if post exists before trying to delete from Facebook
hope you can help me with a bit of a problem I've encountered. I'm writing a Facebook application where I'm making posts to user walls to update game score using the PHP SDK. What I'm trying to do is delete the old post before posting the new one, and that's no problem. Where the problem starts is if the user has manually deleted the old post beforehand. When that's the case, the user's FB session is dropped and all interaction with the API becomes impossible until the user has gone through FB.login again. The code I'm using is: try { $statusUpdate = $facebook->api('/'.$postID, 'delete'); } ca
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.