Facebook hidden post issue with graph api - facebook

When I send a request with is_hidden (to hide a post), I get an error response:
{
"error": {
"message": "(#100) Cannot hide/unhide story posted by page itself",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FJk5AKOr+mU"
}
}
And when I send request with timeline_visibility hidden, then "Facebook posts" is showing hidden by post id, but still showing on Facebook page. How can I hide the Facebook posts?

Related

How to post on a Facebook group as a Page, using the Graph API Explorer?

I am the administrator of website, a Facebook group, a Page and a Facebook API. I would like to create, once a day, a post on my Facebook group using my Page name as author AND using the Graph API Explorer. Is it even possible?
To start simply, I use the Graph API Explorer directly but it fails to create the post.
https://developers.facebook.com/tools/explorer/
For the moment, I have tested the Graph Explorer with these data and parameters:
Request:
post/v15.0/{my_group_id}/feed?message=test
Settings:
Application Meta: My app
User or Page: My Page
Permissions: pages_show_list, publish_to_groups, pages_read_engagement, pages_manage_posts, public_profile
{
"error": {
"message": "Permissions error",
"type": "OAuthException",
"code": 200,
"error_subcode": 1376025,
"is_transient": false,
"error_user_title" => "No Permission to Post"
"error_user_msg" => "You do not have permission to post in this group."
"fbtrace_id": "xxx"
}
}
I'm not sure if I'm doing something wrong or if it's just impossible?

unable to post on facebook photos to groups and pages via graph-api

my app is in development
i am using below permissions:
"public_profile",
"publish_video",
"pages_show_list",
"pages_read_engagement",
"pages_manage_posts",
"publish_pages",
"user_managed_groups",
"groups_show_list",
"publish_to_groups",
"groups_access_member_info",
"publish_actions"
but on trying use the api to post photo in group and page i get below errors
https://graph.facebook.com/v12.0/{page-id}/photos?access_token=={token}&url={url.jpg}
error:
{
"error": {
"message": "(#200) The permission(s) publish_actions are not available. It has been deprecated. If you want to provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AW4L8qJL7HJWz9oTL7rk1IY"
}
}
https://graph.facebook.com/v12.0/{group-id}/photos?access_token={token}&url={url.jpg}
error:
{
"error": {
"message": "(#200) Insufficient permission to post to group",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AsV2H45AICb6G7D73aiedW4"
}
}
Can someone please help with this
Solution for page post
follow this url for details: access_token
using user access token get page access token, pass this page access token in above url for page post
curl --location --request GET 'https://graph.facebook.com/v12.0/{page-id}?access_token={user-access-token}&fields=access_token'

Send messages via Graph API stop working

Am testing this method via Facebook graph api explorer
https://developers.facebook.com/tools/explore
i chose my user and give him access to pages_messaging read_page_mailboxes manage_pages
then choose certain page and method {conversatio_id}/messages with POST request
and send parameter
message: "test test"
I got this response
{
"error": {
"message": "(#210) This call requires a Page access token.",
"type": "OAuthException",
"code": 210,
"fbtrace_id": "C+Xo8LCuuLW"
}
}
Facebook reference
https://developers.facebook.com/docs/graph-api/reference/v2.10/conversation/messages
This is issue reported in Facebook API and fixed now!
https://developers.facebook.com/bugs/261578841015508/

Facebook Graph API Explorer: posting link doesn't work

When I'm trying to post a link via Graph API Explorer, I get the following response:
{
"error": {
"message": "Unsupported post request.",
"type": "GraphMethodException",
"code": 100
}
}
But when I visit the page, the link seems to be posted
Does anyone know what the problem is?

facebook: posting a link to an event feed

The facebook api shows that you can post a link to an event feed by POST'ing to "EVENT_ID/feed" and only specifying the "link" paramater:
However when doing this the result is:
{ "error": {
"message": "(#100) The message can't be empty when posting to an event's wall",
"type": "OAuthException" }
}
If I specify "message", it will post only the message and not a URL.
How do I post a URL to an event's feed?