Instagram callback

Hi i have an instagram button on my webpage, when a user clicks the follow or like button is it possible to get a callback and post to mysql database, can it be done similar to facebook callback
thanks

2 Likes

Since Instagram offers all kinds of API endpoints. https://www.instagram.com/developer/endpoints/likes/ , it should be possible, depending on what it is you want.

What is it you want to “collect”?

Scott

1 Like

Hi thanks for the response, when the user clicks the follow button i want to be able to post it to a table in mysql,
this is how i did it using facebook like

<script type="text/javascript">
 FB.Event.subscribe('edge.create', function(href, widget) {

 document.myform.submit();
});
</script>

then i had a form that posted to a php page and that posted it to mysql
the form

<form name="myform" method="post" action="like.php"><input name="facebook" type="hidden" value="<?php echo $row['facebook']?>"> 
    </form>

its simple for facebook i want to be able to do the same with instagram.

What code do you have for the Instagram like button?

Scott

<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-version="6" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);">
  <div style="padding:8px;"> 
    <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:61.8836915297% 0; text-align:center; width:100%;">  
      <p style=" margin:8px 0 0 0; padding:0 4px;"><a href="https://www.instagram.com/p/BDLiHEvmfvg/"</a></p>
    </div>
</blockquote>

Is it a stealth button? :smile:

Scott

I updated the post to show the HTML again.

@thanks @cpradio.

@westy4463, that HTML doesn’t seem to be a like button.

Scott

Hi yes its more of an instagram page than a button this is the same way i did it with face book, i have uploaded an image of the page the follow button is on the top right

So, someone clicks on the image of an Instagram to like or follow an Instagram? How are you getting the image on your site? Or are you actually embedding Instagrams on your site and want to capture when people follow one?

Scott

Hi yes i am embeding instagram and when people click on the follow or link button i want to be able to write to my sql i thought javascript or jquery could do this but not found anything on the net, i do the same with face book that is easy but can’t seem to get close with instagram

I have to ask again, what is it you want to capture?

Scott

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