I can not create a schedule live broadcast with live api.
this is my request:
https://graph.facebook.com/{page_id}/live_videos
{
"event_params":{
"start_time":1670053893,
"cover":"https://my-domain/product_system_back/product_img/2ad1e2baee4e4e2f8eb4.jpg"
},
"title":"freferfge",
"description":"ewferferfer",
"access_token":"my token",
"status":"SCHEDULED_LIVE",
"published":false
}
but i got the response:
{
"error": {
"message": "(#100) You need to set a planned start time for a scheduled broadcast",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AqvtD5W1wJSrpy30V0aigGR"
}
}
Is anything wrong?
Related
I am trying to get follow and unfollow count per day from instagram Graph API.
Tried the metric follows_and_unfollows. It is giving me the following error:
Query used:
accnt_id?fields=insights.metric(follows_and_unfollows).period(day).since(2022-07-08).until(2022-08-01)
Response:
{
"message": "(#100) The following metrics (follows_and_unfollows) should be specified with parameter metric_type=total_value",
"type": "OAuthException",
"code": 100
..........
}
And on trying with the method mentioned in the above error
Query:
accnt_id?fields=insights.metric(follows_and_unfollows).period(day).since(2022-07-08).until(2022-08-01).metric_type(total_value)
Response
{
"error": {
"message": "(#100) Param metric_type on field insights: This param is not valid",
"type": "OAuthException",
"code": 100,
"fbtrace_id": ""
}
}
The link would look like how? with this specification
I am working with google cloud vision API safe search function. I am calling the API by passing in the URLs to remote images.
I noticed that the same image URL fails before 1PM PST, where it works after roughly 1PM. I have been noticing this pattern for 3 day.
Failing messages (Before 1PM) look something like this:
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
where as when it works correctly (after 1PM), I can get expected responses like this:
"adult": "UNLIKELY",
"spoof": "UNLIKELY",
"medical": "UNLIKELY",
"violence": "UNLIKELY",
"racy": "LIKELY"
}
Has anyone else experienced a similar issue? I am still on free plan, not sure if that is a problem.
Edit: Adding response -
{
"responses": [
{
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"error": {
"code": 4,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"safeSearchAnnotation": {
"adult": "LIKELY",
"spoof": "VERY_UNLIKELY",
"medical": "UNLIKELY",
"violence": "UNLIKELY",
"racy": "VERY_LIKELY"
}
},
{
"error": {
"code": 4,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"safeSearchAnnotation": {
"adult": "UNLIKELY",
"spoof": "VERY_UNLIKELY",
"medical": "UNLIKELY",
"violence": "VERY_UNLIKELY",
"racy": "VERY_LIKELY"
}
},
{
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"error": {
"code": 4,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"safeSearchAnnotation": {
"adult": "VERY_UNLIKELY",
"spoof": "VERY_UNLIKELY",
"medical": "VERY_UNLIKELY",
"violence": "VERY_UNLIKELY",
"racy": "POSSIBLE"
}
},
{
"safeSearchAnnotation": {
"adult": "POSSIBLE",
"spoof": "VERY_LIKELY",
"medical": "UNLIKELY",
"violence": "UNLIKELY",
"racy": "VERY_LIKELY"
}
},
{
"error": {
"code": 4,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"safeSearchAnnotation": {
"adult": "UNLIKELY",
"spoof": "LIKELY",
"medical": "UNLIKELY",
"violence": "UNLIKELY",
"racy": "POSSIBLE"
}
},
{
"safeSearchAnnotation": {
"adult": "POSSIBLE",
"spoof": "POSSIBLE",
"medical": "VERY_UNLIKELY",
"violence": "UNLIKELY",
"racy": "VERY_LIKELY"
}
},
{
"error": {
"code": 4,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
},
{
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
}
]
}
200 OK
If you are using publicly available URLs you will encounter this error from time to time since there is no guarantee that the image is readily available. The host of the image might deny some request for DOS prevention. See imageUri reference for more details.
imageUri
The URI of the source image. Can be either:
A Google Cloud Storage URI of the form gs://bucket_name/object_name.
Object versioning is not supported. See Google Cloud Storage Request
URIs for more info.
A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if
Google throttles requests to the site for abuse prevention. You should
not depend on externally-hosted images for production applications.
When both gcsImageUri and imageUri are specified, imageUri takes
precedence.
What I could suggest is to download the image locally or put it in cloud storage and from there you can use it as input.
I trying to call to overlap api via facebook graph api
The only source I find to facebook overlap is here
Facebook Audience Overlap via API
But when I trying it really not work
The call is in api v10.0
act_10202169727663069/audienceoverlap?pivot_id=6124596383156&{comparison_ids=["6124720495756","6122310977756"]}
The answer I get is:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (audienceoverlap) on node type (AdAccount)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "Avf-Fn29XQoHMU3bAxGNQBc"
}
}
Debug information
==== Query
curl -i -X GET \
"https://graph.facebook.com/v10.0/act_10202169727663069/audienceoverlap?pivot_id=6124596383156&%7Bcomparison_ids=%5B%226124720495756%22%2C%226122310977756%22%5D%7D&access_token=<access token sanitized>"
==== Access Token Info
{
"perms": [
"read_insights",
"ads_management",
"ads_read",
"business_management",
"pages_manage_ads",
"public_profile"
],
"user_id": "10224770822076304",
"app_id": 987735165367365
}
==== Parameters
- Query Parameters
{
"pivot_id": "6124596383156",
"{comparison_ids": "[\"6124720495756\",\"6122310977756\"]}"
}
- POST Parameters
{}
==== Response
{
"error": {
"message": "(#100) Tried accessing nonexisting field (audienceoverlap) on node type (AdAccount)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "Avf-Fn29XQoHMU3bAxGNQBc"
}
}
==== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer?method=GET&path=act_10202169727663069%2Faudienceoverlap%3Fpivot_id%3D6124596383156%26%7Bcomparison_ids%3D[%226124720495756%22%2C%226122310977756%22]%7D&version=v10.0
I am trying to make use of Facebook Server-Side API to send pixel events from my server. I'm making a POST request to this endpoint:
https://graph.facebook.com/v6.0/509380299968653/events?access_token=<SYSTEM_USER_ACCESS_TOKEN>
and sending this payload:
data:[
{
"event_name": "PageView",
"event_time": 1586978506,
"user_data": {
"fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890",
"fbp": "fb.1.1558571054389.1098115397"
}
}
]
,
"test_event_code":"TEST13699"
However, I'm getting an error response from the facebook server:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (events) on node type (AdsPixel)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AaqSg_DnGvvpjI3cWCK1yPU"
}
}
Need help to figure out what I'm doing wrong.
I am trying to get comments for some business account by using business discovery node. I can load list of media with the request
GET
https://graph.facebook.com/v3.1/17841402914723639?fields=business_discovery.username(bluebottle){followers_count,media_count,media{media_type,comments_count}}
This returns
{
"business_discovery": {
"followers_count": 297515,
"media_count": 1317,
"media": {
"data": [
{
"media_type": "IMAGE",
"comments_count": 18,
"id": "17970528943031455"
},
{
"media_type": "IMAGE",
"comments_count": 17,
"id": "17938949563163035"
},
{
"media_type": "IMAGE",
"comments_count": 66,
"id": "17966264041064104"
},
I assume the id in the media entry is an id for that object. But when I am trying to access it like
GET https://graph.facebook.com/v3.1/17970528943031455
I got an error
{
"error": {
"message": "Unsupported get request. Object with ID '17970528943031455' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "HbaasWNQ8ko"
}
}
Is it permission problem?
How can I get list of comments for a media?
According to the documentation: "An access token from a User who created the IG Media object, with the following permissions:" means that you need to have access permission granted by the owner of the post to have access to its comments.
The syntax of the query is :
business-account-id?fields=business_discovery.username(bluebottle){media{comments}}
But when I tried that I got this error :
{
"error": {
"message": "(#100) Please read documentation for supported fields.",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "BFuJQt0/Kt3"
}
}
So I'm guessing they have removed the support for fetching the comments.
You can only get comments if you have a valid authentication token for the account you are querying. You would use the /media or <media_id>/comments endpoint to get comments, insights, etc:
Media endpoint
/MY_IG_BUSINESS_ACCOUNT_ID/media?fields=id,caption,comments_count,children{media_url},comments.limit(50){id,timestamp,username,text},insights.metric(impressions,reach,engagement,saved,video_views)&limit=30
Comments endpoint:
/<MEDIA_ID>/comments/?fields=created_time,from,message,like_count&limit=50