Posts tagged with facebook-graph-api

I am trying to properly set up my Facebook login link, however, I have no idea what the login URL is actually supposed to be. The furthest I have gotten is that my app ID is formatted correctly, and that my response type is correct. Everything else I am unfamiliar with. What my URL currently looks like: "https://www.facebook.com/v19.0/dialog/oauth?client_id=[my ID]&redirect_uri="https://www.facebook.com/connect/login_success.html"&state="{st=[st],ds=[ds]}"&response_type=token"

I have tried removing square brackets (to get the above link), but that didn't work. It does not redirect to the redirect URI and instead pretends that I don't have such URI. I looked at similar posts about this error, however, in those posts, you often have to white list the link, attempting to white list my link results in Facebook that I cannot white list Facebook links. Turning on "Embedded Browser OAuth Login" also does not solve the problem.

When I'm trying to use Graph API to send a message from FB page to an user. I get this error:

{   "error": {     "message": "Unsupported post request. Object with ID '100066276464105' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",     "type": "GraphMethodException",     "code": 100,     "error_subcode": 33,     "fbtrace_id": "AkMoCKVHuPHXAT7IQubn6rE"   } } 

I have checked the other document and see this issue related with missing permission on my Facebook app, but I already has "pages_show_list" permission:

"pages_read_engagement" and "pages_read_user_content":

"pages_manage_ads":

This is my Graph API call:

Have someone got the same issue as me?

UPDATED: I have try again and this is the current issue that I have Step 1: I using GET method to get my user id (UID) Step 2: Then I get my facebook page Id (PID) Step 3: Then I using my user to send the initial message to the facebook page, after that I use the POST call to send response message to the initial message.

Where do I go wrong?

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?