skip to Main Content

I have some trouble in performing an embedding post (especially images) using the new facebook API for Instagram.

Actually I have to perform the following operation: from the account page I need to get the latest 6 post and visualize them on a web page that I own. Clearly this solution must be automated, meaning that if something change on instagram changes must reflect on the web site.

I have take a look to the documentation but I found it very confusing (https://developers.facebook.com/docs/instagram/oembed) and it seems that there are no ways to get a list of post for a given user in a simple way (I check out the oEmbed option, but always need a post url that I don’t have inside an automatic procedure). Also the API Instagram Basic Display seems to need ids to run, but I cannot figure out how to obtain them.

Resuming I need a series of calls to the API to obtain a list of n post for a specific user. Is that possible now? What call should I perform to achieve this goal?

2

Answers


  1. If you are using simple embed from Instragram API things will get tricky.

    I have been testing in local mode and have no problems with the link generated by Instragram.

    The problem is that once you are live as far as I understand you will to need to have:

    As far as I understood In documentation the simple embed link will change from:

    https://www.instagram.com/p/shortCode/
    

    to

    https://graph.facebook.com/v8.0/instagram_oembed?url=https://www.instagram.com/p/shortCode/acces_token={appId + client-token}
    

    However, I haven’t been able to change my account to live since I get prompted for documentation -which I don’t have- that confirms that I own the enterprise. Thus, not being to able to correctly test these steps in live server.

    Login or Signup to reply.
  2. You’re likely being prompted for documentation because the Facebook App uses one or more other products that DO require it. oEmbed by itself does not require business verification in order to go into Live Mode.

    A quick and dirty solution is to make a new Facebook App, put that app in Live Mode, and just use that app for oEmbed.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search