Facebook Live API: delete a live video - facebook-graph-api

I've created a live video thru the Faceboook API (v3.1, all latest changes are implemented) and it works ok for me.
When I'm trying to deletethe video using the call:
DELETE https://graph.facebook.com/v3.1/{live_video_id}?access_token=token
-----------------------
"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": "Dcl7arp3pts"
}
Why? I've requested all need permissions already in the oAuth login ("publish_video",
"publish_pages",
"manage_pages",
"user_managed_groups",
"user_friends",
"public_profile",
"user_videos" ) otherwise I had not possible to create the live video.

Related

Can not use Offline Conversion API to upload conversions with error code #270

When trying this endpoint: POST /v13.0/<OFFLINE_EVENT_SET_ID>/events , i got the following error:
{ "error": { "message": "(#270) This Ads API request is not allowed for apps with development access level (Development access is by default for all apps, please request for upgrade). Make sure that the access token belongs to a user that is both admin of the app and admin of the ad account", "type": "OAuthException", "code": 270, "fbtrace_id": "xxxxxxx" } }
My app is in Live Mode. And has been approved for ads_management, business_management with Advanced Access.
I hope you guys can help me with this issue.
Thank you a lot.

Instagram API Get Media Comments

I have my own Instagram Access Token. How can I read the comments on my Media?
I tried to use the Instagram graph API but it gives me an error.
Documentation - https://developers.facebook.com/docs/marketing-api/reference/instagram-media/comments/
Endpoint - https://graph.facebook.com/{my-media-id}/comments
{
"error": {
"message": "Invalid OAuth access token.",
"type": "OAuthException",
"code": 190,
"fbtrace_id": "AZFkVLSyEpT8lSkHT-47_CF"
}
}
Any help is much appreciated
First thing, you can access data through graph API only if your instagram account is a business account/creator account. If you have one of them, then below is the endpoint to use:
https://graph.facebook.com/v12.0/{media-id}?fields=comments
go through the below doc: https://developers.facebook.com/docs/instagram-api/overview
and make sure you have those permissions added to your access token before you run the endpoint.

Facebook oEmbed requires app in live mode

Cannot use a test Facebook app with oEmbed, it will return
"error": {
"message": "(#901) This endpoint requires app to be in live mode.",
"type": "OAuthException",
"code": 901,
"fbtrace_id": ""
}
In a production app in Live mode you cannot have any unapproved roles as it won't get an access token.
What value is there in a test app? Since it cannot be used with oEmbed.
How to get an app approved by Facebook when you cannot have it it dev mode (since cannot also use it with oEmbed) and cannot have any unapproved roles in live mode? It seems stuck between rock & hard place.

Use Facebook GraphAPI to collect page data

I know that Facebook that restricted usage of its GraphAPI, but to what extent? I want to collect data from posts of this page (post content, likes, shares, date). Clearly I am not an admin of this page. When I try to do this using {page-id}/feed i get the message
{
"error": {
"message": "(#100) Page Public Metadata Access requires either app secret proof or an app token",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "A0xAYR0R1KdoDf_6h7EPr8O"
}
}
How can i collect the feed data?
The official Facebook documentation gives the answer:
Access to the Public Feed API is restricted to a limited set of media publishers and usage requires prior approval by Facebook. You cannot apply to use the API at this time.

What permissions are needed to call /{page-id}/ads_posts on Facebook Graph API?

I'm trying to list the Ads for a Facebook Page using the Graph API /{page-id}/ads_posts endpoint, but I get a permissions when I try to.
Using the Graph API Explorer, I generate an Page Access Token with those permissions: email, read_insights, manages_pages, pages_show_list, ads_read, business_management, instagram_basic, instagram_manage_insights and public_profile.
I'm an admin on the Page itself, the attached Business Manager and on the corresponding Ad Account.
Every time I try to call the /{page-id}/ads_posts, I receive
{
"error": {
"message": "(#200) Not enough permission to call this endpoint",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "XXXXX"
}
}
I can't find any help on the Facebook documentation or Google, given that the error isn't really meaningful (in some cases, I get a message saying that a specific permissions is missing, but not here). Anyone can help ?
EDIT: I tried to add the ads_management permission too, without success.
You need to add those pages to your app that is in development mode (https://www.facebook.com/settings?tab=business_tools).