Instagram for Business Get Post Insights not working with dynamic Post ID

For some reason, when I try to do a Git post insights call on the Instagram for Business module, it doesn’t load any metrics unless I use the search feature, which then manually puts in a post ID and returns a correct response. But if I delete that manually selected and searched post ID and try to use a variable post ID from a previous module, it always errors out with the following error message: “Has anyone experienced this recently?”

Unsupported get request. Object with ID ‘{{1.id}}’ 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 (100, GraphMethodException).

Hey Rob,

can you show a screenshot of the module and how the mapping is setup?

Here are 2 screenshots. the one with the hard coded post ID is what got populated when you search. When you use a variable, it throws the error. Just confirming that I can’t even save the module and attempt to run it when I put the variable in. I have also tried to manually map the metrics, and that won’t work either even using the correct metrics from the API and when just converting from the UI to Map for the metrics.

What do the Metrics look like when you have something selected and toggle the Map ON? And what does the 1.id variable look like compared to them?

When I toggle on the map, it simply shows a comma separated list of metrics, but as soon as I change the value from a hardcoded ID to the variable, the metrics section still errors out, even if I have mapped the fields.

Welcome to the Make community!

but you can still “Save” the module, right? Then that shouldn’t be an issue.

Just leave this in the mapped Metrics field. It works for me.

comments,follows,likes,profile_activity,profile_visits,shares,total_interactions,views,reach,saved

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

It appears as though the module is working now. I can use a variable, and map manual metrics correctly and save!

1 Like

No problem, glad I could help with "Instagram for Business Get Post Insights not working with dynamic Post ID"! :slight_smile:

1. Which was the most helpful post in this thread?

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep this forum organised. :folded_hands:

This marks the topic as solved, so that others can:

  • save time when browsing the latest activity on the forum, and
  • quickly jump to the solution in this topic

To do this, simply click the checkbox at the bottom of the post that is the most helpful in answering your question.

a screenshot of post menu options at the bottom of each post

:link: Here’s a magic link to a list of your other “unsolved” topics: status:unsolved

2. Have you learnt something new?

Do bookmark this topic so you can easily find and return to this topic in future.

a screenshot of bookmark link at the bottom of the topic

:link: Here’s a magic link to a list of your bookmarks /my/activity/bookmarks

3. Have a different/follow-up question? Start a new topic.

Creating a new topic for each question makes it easier for others with the same problem to search for answers. You are also more likely to receive help sooner as new topics are displayed first on the forum’s “new” page!

Hope this helps! If you are still having trouble, please provide more details.

@samliew

1 Like