Posts tagged with facebook-javascript-sdk

I'm new to development with Instagram APIs and am trying to make a React based application that uses Instagram's graph API in order to fetch posts where my professional account is mentioned and display them on my webpage. I tried going through the Meta documentation on how to use their graph API, but I don't quite get where to start and I am getting confused with all the steps I need to take to just make my first API call. The Meta guide is https://developers.facebook.com/docs/instagram-api/getting-started . Any help regarding this on the steps or links to resources that can guide me through this would be great! Thanks in advance!

I have tried making a react application, but in one of the steps it says to create a facebook login app on my meta dashboard first, I did do that, but I am not getting access to the required permission, instgram_basic, etc.

When I am trying to update the targeting of an AdSet, an error is returned. Session URL : https://developers.facebook.com/tools/explorer/321102689698722/?session_id=1408717453113278

{ "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_subcode": 3858082, "is_transient": false, "error_user_title": "Creative Must Provide enroll_status for Standard Enhancements", "error_user_msg": "This creative is eligible for Standard Enhancements, but enroll_status was not provided. Please choose whether you want to turn on standard enhancements or not. Learn more here: https://fburl.com/hyth50xo", "fbtrace_id": "AEIUzfYUlrFTKB8KAgPcVoz" } } 

But the enroll_status for Standard Enhancements is set in as OPT_IN for all the creatives inside the AdSet. Session URL : https://developers.facebook.com/tools/explorer/321102689698722/?session_id=425543010193929

[ { "degrees_of_freedom_spec": { "creative_features_spec": { "standard_enhancements": { "enroll_status": "OPT_IN" } } }, "id": "120208488275990030" } ] 

It's not an advantage+ ad. It's happening for most of the objectives.

While Integrating the Facebook login for business I am facing "It looks like this app isen't available". I have followed all the steps mention in the META documentation. please click here to refer the images which I have followed.

<!DOCTYPE html> <html> <head>     <title>Facebook Login JavaScript Example</title>     <meta charset="UTF-8">     <script type="text/javascript" src="<c:url value='/facebooksdk/js/fbsdk.js'/>"></script>     <script>         window.fbAsyncInit = function() {           FB.init({             appId      : APPID,             cookie     : true,             xfbml      : true,             version    : APIVERSION,             response_type: "code"           });           checkLoginState();         };         (function(d, s, id){            var js, fjs = d.getElementsByTagName(s)[0];            if (d.getElementById(id)) {return;}            js = d.createElement(s); js.id = id;            js.src = "https://connect.facebook.net/en_US/sdk.js";            fjs.parentNode.insertBefore(js, fjs);          }(document, 'script', 'facebook-jssdk'));       </script> </head> <body>       <fb:login-button onlogin="checkLoginState();"> </fb:login-button>     <div id="status">     </div> </body> </html> const APPID = "1450727115804587"; const APIVERSION = "v19.0"; const CONFIGID = "422168783777066"; function statusChangeCallback(response) { // Called with the results from FB.getLoginStatus().     console.log('statusChangeCallback');     console.log(response); // The current login status of the person.     if (response.status === 'connected') { // Logged into your webpage and Facebook.         testAPI();     } else { // Not logged into your webpage or we are unable to tell.         document.getElementById('status').innerHTML = 'Please log '             + 'into this webpage.';     } } function checkLoginState() { // Called when a person is finished with the Login Button.     FB.getLoginStatus(function (response) { // See the onlogin handler         statusChangeCallback(response);     }); } function testAPI() {     console.log('Welcome!  Fetching your information.... ');     FB.api('/me', function (response) {         console.log('Successful login for: ' + response.name);         document.getElementById('status').innerHTML = 'Thanks for logging in, '             + response.name + '!';     }); } 

Step 1 : Create a new app Note : I have selected Other option

Select an App Type -> I have selected an second option Business App Type

Provide App Name & Business Profile and click on Create App

(3.1) Business App details - Business app is verified

App Details : - Display Name - EduCRM - App Domain : educloud.app - Privacy policy & Terms of service Url : https://zdp2.educloud.app/lms/tandc - Category : Education - Image Update : Yes

Add Product “facebook login for business”

Click Setup button of Facebook Login for Business

Facebook Login for business get Advance permission Permission requested pages_show_list ads_management
leads_retrieval pages_read_engagement
pages_manage_metadata
pages_read_user_content pages_manage_ads
pages_manage_engagement public_profile

Configuration Quick Start steps: Select Web option : to get SDK code Make the App live :

Recently facebook made some changes to their api and depricated the "Groups API". We used it to add weekly a post to our group in an automated way. This ofc stopped working.

Now i have tried to read up on some documentation but was not able to even do a call towards a group.

Some information we found: Blogpost facebook v19 & Discussion on facebook community

Ps it works for pages. But i cant transform my group to a page because it needs to be private.

Any help would be really appreciated. Thx

"message": "(#49101) The app must have credit partition permission or the receiving business must be a child business manager of the extended credit owner with business management permission",

What exactly means "credit partition permission" and how i can get it to my Meta App?

Thanks in advance

I'm getting this error (#49101) when i'm trying to allocate Credit to a BM via API "message": "(#49101) The app must have credit partition permission or the receiving business must be a child business manager of the extended credit owner with business management permission".

I was expecting to be allowed to allocate credit but seems like i need this kind of permission now.