Trouble with Facebook Graph account

I’m having issues trying to connect my Facebook Graph Account to n8n.

I’m trying to generate an image using chatgpt and post it to instagram. The problem is that I don’t understand how to connect my dev account to n8n. I created an instagram as a creator account and set up permissions.

Please share your workflow

Invalid Request: Request parameters are invalid: Invalid platform app

I also tried pasting the app Id then the secret behind it like the instructions say, but that also did not work.

I also added my instagram account as an instagram tester role under the app roles.

image

Any advice would be great!!! Thanks!

Hello @Porkroll, how are you?

I noticed that you are trying to generate the token through the explorer panel.

I recommend using the “User Token” option.

And in n8n, you should configure the “Access Token”.

Another point: generating a token manually is not a viable option; it’s better to set up a Facebook authentication flow, example scope:

1 - Workflow responsible for generating the authentication URL
2 - Workflow responsible for exchanging the access token for a long-lived token

Thanks for the reply. I did some testing, noted your tips. I also watched a couple of YouTube videos. It turns out that the Facebook connection is broken, and there is a issue with posting to Instagram.

Due to the constant changes in the Facebook Graph API, I always use the HTTP Request to send the requests.

Do you have an example workflow/a video that would be a good demo? I’m new and want to learn more about http requests (it would be great if it was focused towards instagram).

I developed a flow and validated it.

It contains the step of exchanging the token for a long-lived token and retrieving the profile ID, as well as the step of publishing an image on Instagram.

If this is what you need, could you mark my answer as solved?

I’m happy to help.

For some reason, when I access the Webhook, I does not add the code to the query section in the JSON. Any advice?

Hello @Porkroll,

The webhook must be used as the redirect URI when logging into Instagram. To learn how to do this, access the Facebook Developers documentation for more information, as this involves configurations in your published application.

Instagram API with Facebook Login - Instagram Platform - Documentation - Meta for Developers or Instagram API with Instagram Login - Instagram Platform - Documentation - Meta for Developers

Remember, if you are going to use the basic Instagram login method, it is necessary to update the HTTP request endpoints to graph.instagram.com.

If the workflow has helped you, don’t forget to mark the answer as the solution. I’m happy to help.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.