Posts under category facebook-graph-api

My goal is: I want to schedule a Reel on Instagram and Facebook at a given time (cross-post at same time) via API. Accounts are connected to each other.

If I use the business suite UI I can schedule into both and I see them marked as "cross post"

I want to do the same thing via API.

What I tried

  1. I can publish instagram reel fine using this api https://developers.facebook.com/docs/instagram-api/guides/content-publishing/#reels-posts BUT I see no way of scheduling there
  2. I can schedule or publish Facebook Reel totally fine via the FB GRaph api BUT can't cross-post to instagram at the same time

I can't find any information for the "share to connected" facebook functionality, or cross-posting scheduling the reel at once in both instagram&facebok.

If I schedule Facebook "Reel/Post" via API is not cross-posted. (see below)

I also can't find any way to schedule Instagram Reel via api

NOTE:

I have already connected my instagram and facebook page and can access both as 1 via business suite.

Questions:

  1. How to cross-schedule reel in both instagram and facebook ? To have same functionality as the ui
  2. If point 1 is not possible, at least how to schedule instagram reel so it is posted automatically at a certain date ? I don't see any documented field in the api for this. I read this https://business.instagram.com/blog/instagram-api-features-updates but no information how to schedule a "reel post" at a given time

Thanks in advance

Facebook page reels video upload with API facing issue

{ "error": { "message": "(#200) subject does not have permission to post videos on this target", "type": "oauthexception", "code": 200, "fbtrace_id": "afayglg374lfu4ml65zprso" } }

Note: upload my own page

Remove Facebook app and reconnect again and allow all permission requirement documentation,

One time everything is perfect but suddenly show this error then I try create new app and try again but still show this problem and also change the my machine(PC) use new Facebook account and new page but You still show this problem

I have used Facebook Login dialog with the correct permission and gotten access to a person's business accounts. I received a code after the login process and exchanged it using the /oauth/access_token endpoint to receive a system access token (which does not expire).

I now want to get the business IDs of the businesses that the person using the Facebook Login dialog gave me access to, so that I can link their business to mine using the "on behalf of" approach (I'm the partner, they are the client) .

However, for me to do that I require access to their business ID. How do I get that business ID? I know there is an API which returns all business IDs that I (the partenr) has access to, but I want the one that they just gave me access to using the Facebook Login dialog box. How can I do that?

I need to upload facebook reels with api but show this error

{ "error": { "message": "(#200) Subject does not have permission to post videos on this target", "type": "OAuthException", "code": 200, "fbtrace_id": "A0vPpH6U1wfZ9o_4cMqmEH3" } }

I have done everything as per documentationall permissions are given eg pages_show_list pages_read_engagement pages_manage_posts

and also i have page admin access (full control )

show some reference image

I am stuck with the Webhook endpoint where I receive the Facebook feeds.

I need to create an API to get the Facebook feeds (comments, like, etc) which are made on my Facebook page.

By following the steps, I have created a facebook app with the developer account. With webhook added

Webhook Added

After that I went to the settings page.

Since I want the feeds, I have select the Page from the dropdown and clicked subscribe. The I need to enter the callback URL.

From my API side, I have created a .NET Core 5 application. Then create a Get and Post method called Webhook. Since I need an https:// connection, I have installed ngRok and setup the test API. And the GET method will return the challenge:

[HttpGet("webhook")] public async Task<IActionResult> Receive([FromQuery(Name = "hub.mode")] string hubMode,                                    [FromQuery(Name = "hub.challenge")] int hubChallenge,                                    [FromQuery(Name = "hub.verify_token")] string hubVerifyToken) {     return Ok(hubChallenge); // this is working... no issue here } 

Back to the Facebook side.

I have added the callback URL after clicking subscribe and got Challenge key in my API Get method. Once its done I need to select the fields i need to subscribe i.e.; feed in order to get the Facebook page response.

Feeds

Then i need to setup permission so, i have subscribed to permission dropdown. Added the callback URL, get the Challenge key and subscription is complete. After that subscribed to pages_manage_metadata , pages_show_list and pages_manage_engagement(although document didn't mention pages_manage_engagement).

After that Went to facebook graph explorer and done the subscription to feed using the page access token https://graph.facebook.com/{page-id}/subscribed_apps?subscribed_fields=feed&access_token={page-access-token}

subscribe to page

This is also done and its says true

I check with the GET method to see whether it is complete and its says feed is in subscribed list Subscribed fields

But after this everything stops :(

When i click the test button its not sending any feed to my Post method in my API.

So i used the graph explore API to comment the Post and post is done , but no webhook response tried comment manually but no response.

So i thought maybe some issue with my API Post endpoint i have created. So i tested with Postman and the request is going through.

I changed by computer to my laptop with different network(you need to try everything possible), still no response.

So Just for the testing i subscribed to the Messaging option in facebook, just to check whether its an issue with the Page. The thing is i got a response to my Post method, so the messaging webhook is sending to the POST method. That means my API end point is correct.

So i thought something to do with by permission, so i enabled all permissions related to the page and tried, but no response.

I changes my facebook account to some other account, not working.

Then i tried with an account with facebook business enabled, no luck

I have tried changing the Permissions in the page, still no luck.

I tryed the gemini,chatgpt 3.5 and 4 ... no luck. asked in the facebook community...that place is kinda dead.

The main issue is i am not even getting any response when i click the Test button. Most of the online issues, they atleast get a hit from test.

So next thing to do is review the app and then test. but when i am in the review page , they are saying we need to test the app well before we go to review. So i an not sure what to do now.

Am i missing something? Any help would be valuable.

I dont know whether its a facebook bug or not. Because some document say

you need if the Page has not disabled the App platform in its App Settings. But in that page there is a turn on button, but it will change its status once we click it, but it will go back to the original state when we refresh the page. App Settings page

If anyone faced this issue and manage to solve this please help. i have been on this for quiet a while and i don't know what to do next.

Thankyou