Facebook oEmbed requires app in live mode - facebook-graph-api

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.

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.

Getting error in requesting access token with graph.facebook

I'm testing OAuth 2.0 with facebook API, after receiving the authorization code and requesting the access token with the GET https://graph.facebook.com/v3.3/oauth/access_token? i got this response :
{
"error": {
"message": "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "Dl3lYjJLKKy"
}
}
the redirect_uri is the same as the one in the login dialog since i'm just testing on localhost.
Everything was working fine till today,i even tested new callback url using localtunnel but it didn't work at all

Facebook Live API: delete a live video

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.

Facebook API - how get ad accounts id

I'm using Facebook graph API v2.9, and in login use scope:
email,ads_management,ads_read,business_management,pages_show_list,user_managed_groups,user_events,read_insights
I created an application on developers.facebook.com.br and associated the Marketing API, where I have only myself as an administrator.
When I log in to the application that I am developing with my facebook account I succeed, however if someone else tries to use my tool with this person's facebook login, when trying to call api
https://graph.facebook.com/v3.0/me/adaccounts?fields=name,account_id,account_status,id&access_token={TOKEN_LOGIN}
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "DAoQR9tEODK"
}
}
gives the following error:
My question is if someone else uses this API, will I have to add it as an application manager, or if is there another fetch to get all adaccount_id without that person being a member of my application?

How to get user apps with facebook sdk?

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"
}
}