I'm trying to port my application from 1.0 to v2.2 of graph api.
To be specific, I have problems in getting admins of a given page.
Strangely, the endpoint is deprecated while it's not reported like so from docs :
Official doc page:
https://developers.facebook.com/docs/graph-api/reference/v2.2/page/admins
Actual response in graph api explorer:
{
"error": {
"message": "(#12) admins is deprecated for versions v2.2 and higher",
"type": "OAuthException",
"code": 12
}
}
Is there any way to have admins ids of a page?
The /{page_id}/admins edge on the Page node has been renamed to /v2.2/{page_id}/roles
Source: https://developers.facebook.com/docs/apps/changelog
Related
I'm having problem with getting picture from the facebook post via Graph API. It used to work but something has changed and I'm getting "(#12) singular statuses API is deprecated for versions v2.4 and higher"
Does anyone had similar problem and know how to workaround it ?
Reproduction steps:
Request:
https://graph.facebook.com/10155765892248481/picture?type=album
Response:
{
"error": {
"message": "(#12) singular statuses API is deprecated for versions v2.4 and higher",
"type": "OAuthException",
"code": 12,
"fbtrace_id": "BBWPqs8AYts"
}
}
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.
I'm trying to leverage the Graph API for a BI report, but when I use
{page_ID}/conversations
I receive this error:
"error": {
"message": "(#12) This endpoint is deprecated for versions v2.4 and higher",
"type": "OAuthException",
"code": 12,
I'm testing in Graph API explorer, and I have the required access tokens. I can't determine what the issue is based on all the documentation I've reviewed.
I want get user's app with facebook sdk, i have found facebook document and not get any idea.
Apps like these.
There is no way to get the list of Apps anymore, earlier you could use this endpoint: /me/applications/developer
The result:
{
"error": {
"message": "(#12) User/applications endpoint is deprecated for versions v2.6 and higher",
"type": "OAuthException",
"code": 12,
"fbtrace_id": "Gk8yWCyLdK3"
}
}
Looks like User Properties are supported only in IOS and Android SDK
so for our canvas game I'm trying to update user properties using GraphAPI.
In Graph Api Explorer I'm trying to POST to
"{application-id}/user_properties" edge.
When posting
data = [{"user_unique_id":"DD","custom_data":{s:1}}]
I get following error
{ "error": {
"message": "(#100) Invalid property key in some entries: s",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FYce0Q+zd+d" } }
What am I doing wrong?
Thanks for raising this issue to us. User Properties support will be supported in JS SDK too in the coming months.