At first I used my app (on facebook canvas) with publish_stream permission to create a post using Graph API, it was success, the post appeared both in my news feed and my timeline. However, when I called Graph API to delete it, using HTTP DELETE https://graph.facebook.com/{post-id}/?access_token={my-access-token}. It returned true, mean that the post is deleted successfully. But it's only deleted on my timeline and still appear in news feed, i can still comment and like it.
Please, tell me what's wrong with it? In the document, they (facebook) didn't mention this.
How can I delete a post in news feed if my app created this?
Related
I am working on a simple app using the Facebook Graph API where I can retrieve the comments on a post and delete those comments.
I am working on a simple app using the Facebook Graph API where I can retrieve the comments on a post and delete those comments. I have the following permissions set up: user_posts and publish_actions.
When I try to delete a Facebook comment on one of my posts using my app, I get the following error: "Users can only delete their own comments published by the same app." Is there a way around this?
Is there a way around this?
deletion works in some cases and not in others, which is very confusing.
Thanks
I am using /{page-id}/feed endpoint of Facebook Graph API to get the feed from a particular page.
There in the response a post from an user to the page is missing, though from facebook portal I am able to see that post on that page. As that post is visible there I can assume that is public.
Another post from the same user on a different page is also not coming in response.
Any idea on why the post is not getting returned ? also I need details about what kind of data is not supported by facebook page feed API.
Your answer will be really appreciated.
My question is,
if I am the user using an authorized web application, can I post something to my friends' timeline at once, and without any interactions with me?
I've read this topic and other relative posts on stackoverflow, and I understand that facebook had made some changes.
But when I read Feed Dialog document, I find out that it said:
Your application can also publish directly to a profile's timeline without interaction on the part of someone using your app. To accomplish this, use the corresponding Graph API call
while "Graph API call" is an unavailable link. And I can't figure out what the corresponding graph api call is.
You cannot Post to User's Friends timelines through the Graph API, as simple as that. You can only Post to the authorized User's wall through the Graph API.
The only way to achieve the similar functionality, as the blog post that you have checked suggests is,
If you want to allow people to post to their friend’s timeline from your app, you can invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag).
I'm sorry for the cross posting, but it seems that I posted question to the general stackoverflow (not to facebook one).
(API call to Delete from facebook news feed)
Could you please help?
When the user (let it be Arnold) posts some link to his friend's wall (to Chuck) via my app, the FB also makes a post in a Chuck's news feed (with the same link). The question is - is there any FB API ability to delete the message from the Chuck's news feed?
Once the Chuck clicks the link posted by Arnold on Chucks wall, the same link on the news feed becomes no longer valid. So I need to drop the news feed post (but not the wall post) as link is disposable, but in the news feed looks like "new".
In the FB documents (http://developers.facebook.com/docs/reference/api/user/) under home section (This connection corresponds to the News Feed) I have not found any mentions about the ability to delete posts from news feed.
However there is an ability to delete a post. And somewhere on forums mentioned an ability to set is_hide=true to the news feed posts.
Dear guys, could you please suggest is there an ability to hide/delete news feed posts? Where I can find documentation about that?
Thanks
You can delete any Facebook Graph object if you have the appropriate permissions using the http delete method (or you can append method=delete to your api call.
e.g:http://www.facebook.com/[user_id]/posts/[post_id]?method=delete&access_token=[access_token]
Can I upload photos using Facebook API but not post to wall in Facebook?
What I use is the photos.upload in the API.
If it cannot be avoided, is there any way to delete that wall post so that I don't have to do it manually?
Documentation of graph API (http://developers.facebook.com/docs/reference/api/photo/) mentions the following:
If you would like to suppress the
story that is automatically generated
in the user's feed when you publish a
photo (usually because you plan on
generating your own), you can add a
no_story=1 parameter. In this case,
the user will receive a notification
that your application has uploaded a
photo.
Adding the same parameter to the legacy REST API seems to work for me
Let me answer my own question:
It's about the permission problem. We can set the permission so that the photos do not publish to wall.