11
Views
4
Comments
Solved
[Facebook Connector] Publish Instagram posts
Forge component by OutSystems R&D
10
Published on 04 Dec 2018
Application Type
Traditional Web

Greetings all,


I am wondering if OAuth2_Token.AccessToken ("AccessToken" output from "OAuth2_Token" action) is the access token required for using Instagram API.


The access token I am talking about: https://developers.facebook.com/docs/instagram-api/guides/content-publishing#access-tokens


Example of use (access token represented as "{ig-user-id}"): https://developers.facebook.com/docs/instagram-api/guides/content-publishing#publish-photos


I am trying to sign in to my own Facebook/Instagram account via my app, and then publish Instagram posts via an action. Therefore, I am referring to this guide: https://developers.facebook.com/docs/instagram-api/guides/content-publishing


Thanks!

Rank: #339
Solution

Hi YS, 

Although I'm not familiarized with this connector, one article that perhaps can give you some insights about Instagram posting through OutSystems is this one

Please give it a look, perhaps it can be helpful. 

Best regards, 

Paulo Z

Rank: #2289

Thanks Paulo! I'll read it before I mark as resolved, thanks!

Rank: #339

Sure! You're welcome. 

Hopefully, it will help you solve your issue.

Regards

Rank: #2289

I got everything to work!

To answer my own question:

OAuth2_Token.AccessToken is passed into https://graph.facebook.com/v9.0/me/accounts?access_token={accesstoken}, in order to get the {facebook-pageId}, followed by the {InstagramId} that you will then use to publish Instagram posts (: