I used the code here: code
But this code no longer functions and I need this code for embed the fb album in my site.
So when i search about the problem appeared this:
"error": {
"message": "Unknown path components: /photos&callback=",
"type": "OAuthException",
"code": 2500
So, if anyone can help me. Thanks
You're calling <ID>/photos&callback=....
it should be <ID>/photos?callback=...
The '?' character should mark the start of the query string parameters, not a '&'
Related
I have been looking this error message everywhere and I cannot find it:
{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_subcode": 2446211,
"is_transient": false,
"error_user_title": "First Dof Value Should Match Object Story Spec Field",
"error_user_msg": "For a Degrees of freedom enabled ad, the first value of Asset Feed Spec field should match the corresponding field in Object Story Spec.",
"fbtrace_id": "AKOUMOZmQksWf9lDtUw0XSc
"
}
}
Request:
act_XXXX/adcreatives?access_token=XXXXX&fields=account_id%2Cactor_id%2Cadlabels%2Capplink_treatment%2Casset_feed_spec%2Cauto_update%2Cbody%2Cbranded_content_sponsor_page_id%2Ccall_to_action_type%2Ccategorization_criteria%2Cdestination_set_id%2Ceffective_authorization_category%2Ceffective_instagram_story_id%2Ceffective_object_story_id%2Cid%2Cimage_crops%2Cimage_hash%2Cimage_url%2Cinstagram_permalink_url%2Cinstagram_story_id%2Cinteractive_components_spec%2Clink_deep_link_url%2Clink_og_id%2Clink_url%2Cmessenger_sponsored_message%2Cname%2Cobject_id%2Cobject_store_url%2Cobject_story_id%2Cobject_story_spec%2Cobject_type%2Cobject_url%2Cplace_page_set_id%2Cplatform_customizations%2Cplayable_asset_id%2Cportrait_customizations%2Cproduct_set_id%2Crecommender_settings%2Cstatus%2Ctemplate_url%2Ctemplate_url_spec%2Cthumbnail_url%2Ctitle%2Curl_tags%2Cuse_page_actor_override%2Cimage_file&summary=true&limit=25&after=MjM4NDM4MTAzMzgwMTAzMTMZD
It fails after the page 450 so it is for sure an ad creative that has some wrong data. Is there a way to filter it? I am blocked on this.
Ps. I am able to reproduce it on the graph explorer too.
Thank you.
I want to get the post's text using the post ID using Graph Api query at Graph Api Explorer. I am trying as;
GET/v2.8/{14346289902472_1788429604532785}
and
GET/v2.8/{14346289902472_1788429604532785} HTTP1.1
as documentation says;
But both prompts errors;
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: {14346289902472_1788429604532785}",
"type": "OAuthException",
"code": 803,
"fbtrace_id": "AKd65t6sFzI"
}
}
and
{
"error": {
"message": "Unknown path components: /1.1",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "DbFPezM2JiA"
}
}
How can I get the post text using post ID?
Edit 1
Where did you get that id from in the first place?
Visiting https://www.facebook.com/14346289902472_1788429604532785 redirects to https://www.facebook.com/ImranKhanOfficial/posts/1788429604532785, and when you look up the page name ImranKhanOfficial via API, you find its page id is 143462899029472.
So
14346289902472
instead of
143462899029472
And once you use that as the “prefix” for the post id, it works perfectly fine: https://developers.facebook.com/tools/explorer?method=GET&path=143462899029472_1788429604532785&version=v2.8
You are trying to get a single feed item.
GET https://graph.facebook.com/v2.8/143462899029472/feed?id=1788429604532785
{
"error": {
"message": "(#12) singular statuses API is deprecated for versions v2.4 and higher",
"type": "OAuthException",
"code": 12,
"fbtrace_id": "CJpKkf7emZS"
}
}
Graph api does not allow you to do this.
Just get the feed GET https://graph.facebook.com/v2.8/143462899029472/feed and iterate over the results until you find the one you want. If you don't find it in the first set, then paginate and get it in the next set.
I'm studying about Google Cloud Platform.
In this stackdriver projects.groups.members.list I'm trying to get member's list in stackdriver's group.
when I command this code in above link,I get this error.
GET https://monitoring.googleapis.com/v3/projects/{my_project}/groups/{my_group}/members?key={YOUR_API_KEY}
error :
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
my_project and my_group is correct, and there is no other argument, is there any problem?
I found that {my_group} is not alphabetical string like my_group,
but integer string like 12345678956.
in this projects.groups.list you can find your group_id by excuting APIs Explorer.
When i use GET /v2.4/{photo-id} in graph API explorer
It throws an error :
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: {user-id}",
"type": "OAuthException",
"code": 803
}
}
what does this really mean ? any help
You seem to be passing {user-id} which is not a valid data to query about.
Instead, use the below code without {user-id}:
GET /v2.4/{photo_id}
{photo_id} is an id of a post most probably in the userid_postid ("10000_00001") format.
How can I convert from Facebook's Graph API Explorer to a valid URL? I'm trying to combine these elements:
GET method
https://graph.facebook.com/1261653562?fields=id,name,albums.fields(photos.fields(picture,name),updated_time)
Access_token=AAAC....
I tried this:
https://graph.facebook.com/1261653562?method=GET&fields=id,name,albums.fields(photos.fields(picture,name),updated_time)?access_token=AAAC.....
but this returns me this error:
{
"error": {
"message": "Syntax error \"Expected end of string instead of \"a\".\" at character 63: id,name,albums.fields(photos.fields(picture,name),updated_time)access_token=AAACEdEose.........",
"type": "OAuthException",
"code": 2500
}
}
Thanks!
change "?" before access_token to "&"
https://graph.facebook.com/1261653562?method=GET&fields=id,name,albums.fields(photos.fields(picture,name),updated_time)?access_token=AAAC
like this:
https://graph.facebook.com/1261653562?method=GET&fields=id,name,albums.fields(photos.fields(picture,name),updated_time)&access_token=AAAC