Posts under category Meta & Facebook

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.

In threads documentation: https://developers.facebook.com/docs/threads/posts

They gives the details of Threads Graph API to post content on Threads platform. Here:

They don't mention that how we can get our threads-user-id. Please tell me how I can get that.

I already search on Facebook developer account and they don't mention any type of thread-user-id their.

I used my threads account username but it didn't work for me as well.

It is impossible to go live with developer test users on test business pages because a recent change for business pages requires the page to be a minimum of 60 days old / 100 followers to enable live video as a capability.
This rule has, unfortunately, also been applied to test user accounts, breaking the ability to run test lives in the development environment.
Our application, which operates on business pages, is currently under review. Despite our best efforts, we are repeatedly failing our review, not for the violation under review, but due to the fact that the FB reviewers do not have access to a business page that they can go live on. This will soon disable our application due to the inability to pass the review as the reviewer doesn't have access to the right tools, which underlines the need for a solution to this issue.

As per https://developers.facebook.com/docs/plugins/embedded-posts/
Sometime in mid October 2024, our embedded posts have stopped working for mobile devices on wordpress website.
It works fine for desktop, but mobile it breaks.
The plugin/code detects a mobile device and changes using https://facebook.com to https://m.facebook.com causing a http 400 error.
Console logs: Refused to display 'https://m.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'.
code used on word press post:

or [facebook_post url="https://www.facebook.com/PawsClawsAdoption/posts/929565525876422" width="500"]
URL that mobile generates and uses in the iframe (broken) https://m.facebook.com/plugins/post.php?app_id=310860795753134&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df0180052a8332b903%26domain%3Dwww.pawsandclawsadoptions.com.au%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fwww.pawsandclawsadoptions.com.au%252Ff27eac462160384b6%26relation%3Dparent.parent&container_width=274&href=https%3A%2F%2Fwww.facebook.com%2FPawsClawsAdoption%2Fposts%2F929565525876422&locale=en_US&sdk=joey
URL desktop generates in iframe (working) https://www.facebook.com/v2.0/plugins/post.php?app_id=310860795753134&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df002d2a99d7f8fdbc%26domain%3Dwww.pawsandclawsadoptions.com.au%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fwww.pawsandclawsadoptions.com.au%252Ff1cdcf9040098cca1%26relation%3Dparent.parent&container_width=292&href=https%3A%2F%2Fwww.facebook.com%2FPawsClawsAdoption%2Fposts%2F929565525876422&locale=en_US&sdk=joey&width=500