I am using Python and Facebook Graph API v17.0 to schedule image posts. I use scheduled_publish_time parameter when creating the post, also I am specifying published parameter to false. The problem I have is that the post is scheduled but it does not appear in the "facebook planner" (in meta bussines suite).

Even the post is not in the calendar, it is posted in the feed according to date and time specified in the code.

is there a way to access to a specified scheduled post (with the id) and check or edit manually (if is necessary) ?

I tryed with:

https://www.facebook.com/{page_id}/posts/{post_id}/

But it shows the post with the date and time when it was created not when the post should go live (scheduled date&time).

Do you know how to construct a link to access to a specific scheduled post that shows the date and time when it should go live (scheduled date&time)?

I hope someone can help.

Thanks in advance.

We have implemented Facebook login on our React application. Our "Log in with Facebook" button's click handler calls FB.login. We have supplied a callback to FB.login that handles the response and authenticates with our backend using the provided access token.
The works in most cases - except if the user has two-factor authentication enabled on their Facebook account. In this scenario, if the user successfully goes through the flow in the Facebook popup to complete two factor authentication and verify their identity, the popup closes - but the response object supplied to the FB.login callback has a status of "unknown" and does not include an access token.
The user must then click "Log in with Facebook" a second time, and only then is a successful auth response supplied to the FB.login callback.
Looking for support in handling this scenario so that the user does not need to click "Log in with Facebook" twice in order to authenticate with our app.

i got the access token but while exhangeing it for long live token api getting following error

error: { message: 'Unsupported request - method type: get', type: 'IGApiException', code: 100, fbtrace_id: 'AnMYrIXYSTKYCA_Sh2qKxkU' }

const accessTokenApi = {             url: 'https://api.instagram.com/oauth/access_token',             method: 'post',             headers: {                 'Content-Type': 'application/x-www-form-urlencoded'             },             body: new URLSearchParams({                 code: code,                 redirect_uri: instagramConfig.callbackUrl,                 client_id: instagramConfig.clientId,                 client_secret: instagramConfig.clientSecret,                 grant_type: 'authorization_code',             }).toString(),         };         const tokenResponse = await this.apiCall(accessTokenApi); const userPlatform = await this.userPlatformService.getUserPlatfromsByCode(userId, "INSTAGRAM");         const userLongLiveTokenApi = {             url:`https://graph.instagram.com/access_token?grant_type=ig_exchange_token&client_secret=${instagramConfig.clientSecret}&access_token=${userPlatform.authToken}`,             method: 'get',             headers:{}         }         console.log(userLongLiveTokenApi)         const userLongLiveTokenResponse = await this.apiCall(userLongLiveTokenApi); 

I am trying to retrieve a list of all pages (business and non-business) that the account has. However, only non-business pages are currently being returned.

First I allow the user to login. He/she gets a Facebook Login popup, where he/she can select the pages. Then I generate a long-lived token, like so:

const response = await axios.get(   "https://graph.facebook.com/v21.0/oauth/access_token",   {     params: {       grant_type: "fb_exchange_token",       client_id: process.env.FB_APP_ID,       client_secret: process.env.FB_APP_SECRET,       fb_exchange_token: fbAccessToken,     },   } ); 

I get a token just fine. I return the token and the client makes an api call to retrieve the pages:

const handleFacebookCallback = async (response: any) => {   if (!response?.id) {     return;   }   setLoading(true);   const { data } = await api.post("/api/integrations/facebook/user", {     userId: user._id,     fbAccessToken: response.accessToken,     fbUserId: response.id,   });   const url = `https://graph.facebook.com/v21.0/${response.id}/accounts?access_token=${data.longLivedToken}`;   const fbResponse = await fetch(url);   const fbData = await fbResponse.json();   setResponseFbPages(fbData.data);   setLoading(false); }; 

Now, I have 3 pages - 2 are business and 1 non-business. Only the non-business pages are getting returned.

I tried to query the /accounts endpoint, and I am expecting to get a full list of pages returned.