Automatic publications instagram php [closed]

-4

I'm having trouble developing a php script to do automatic publishing on Instagram , API > for these publications, with support for CRUD operations, but for this, I need to be part of the closed beta Facebook Marketing Partner s or Instagram Partners , which in the case I did not get permission, because they are not accepting new partners ...

I would like to know if anyone has any solutions, or got these permissions in some way!

Thank you in advance.

    
asked by anonymous 28.08.2018 / 16:07

1 answer

-1

You can use this API: link

Here is an example of how to upload a photo to Instagram:

<?php
require '../src/Instagram.php';
/////// CONFIG ///////
$username = '';
$password = '';
$debug    = false;
$photo    = '';     // path to the photo
$caption  = null;   // caption
//////////////////////
$i = new Instagram($username, $password, $debug);
try{
  $i->login();
} catch (InstagramException $e)
{
  $e->getMessage();
  exit();
}
try {
  $i->uploadPhoto($photo, $caption);
} catch (Exception $e)
{
  echo $e->getMessage();
}
    
28.08.2018 / 16:21