Social Networks Auto Poster – Premium API for PHP

SNAP Premium API for PHP is a set of PHP libraries that can be used to make posts to networks that don’t have native APIs like Google+, Pinterest, Instagram, Flipboard, Reddit, Xing, etc..

Application Program Interface (API) that could be used to post to Social Networks without native built-in API

Most social networks (Facebook, Twitter, LinkedIn, Tumblr, Blogger. etc…) have built-in free native API that can be used for posting. You don’t need anything extra to post there. Just call built-in API from your code.
Some networks (Google+, Pinterest, Instagram, Flipboard, xing, etc…) don’t have native API, so we created our own APIs for such networks.
SNAP Premium API PHP Libraries Package gives you an ability to post to networks without native API.

SNAP Pro - Unlimited Accounts

What is included?

1 year of access to all available API libraries. As of now:
Google+ – post to Google+ Profile, Google+ Branded Pages, Google+ Business Pages, Google+ Collections, Google+ Communities. Also an ability to post to Google+ Collections and Google+ Communities as “Page”.
Pinterest – pin images to your Pinterest Boards.
Instagram – post your images with description.
LinkedIn – post to LinkedIn Company pages and LinkedIn Groups.
Flipboard – Post to your magazine.
Reddit – post to your own subreddits.
YouTube – post messages to your YouTube channel feed. Ability to attach existing YouTube videos to posts.
XING – post to your profile, groups and company pages

If another network is added during the year, you will get immediate access to it.

More Details and Demos

Google+ API Library

Google+ API Library demo, code samples, and more details

Instagram API Library

Instagram API Library demo, code samples, and more details

Pinterest API Library

Pinterest API Library demo, code samples, and more details

How to use it – Let’s see some code:

You can also just post directly to individual networks. You can do it even without settings array. Here is the example of how to post a simple message to your Google Plus Business Page Stream: (more examples of using it with Google+ only are here: Google+ Automated Posting)

<?php        
      require_once "nxs-api/nxs-api.php";
      require_once "nxs-api/nxs-http.php";
      require_once "inc/nxs-functions.php";  
      $email = 'YourEmail@gmail.com'; 
      $pass = 'YourPassword';
      $pageID = '109888164682746252347';
      $msg = 'Post this to Google Plus!'; 
      $nt = new nxsAPI_GP();
      $loginError = $nt--->connect($email, $pass);     
      if (!$loginError)
        {
          $result = $nt -> postGP($msg, '', $pageID);
        } 
      else echo $loginError; 
      
      if (!empty($result) && is_array($result) && !empty($result['post_url'])) 
        echo '<a target="_blank" href="'.$result['post_url'].'">New Post</a>'; 
      else 
        echo "<pre>".print_r($result, true)."</pre>";
    ?>

Post simple text message to all your configured accounts:

<?php

  // First, let's get settings. 
  $fileData = file_get_contents(dirname(__FILE__).'/nx-snap-settings.txt');  
  $snapOptions = maybe_unserialize($fileData);
  
  if (class_exists("cl_nxsAutoPostToSN")) { 
    // Initialize the class
    $nxsAutoPostToSN = new cl_nxsAutoPostToSN($snapOptions);    
    // Message array contains the post
    $message = array(
      'title'=-->'Social Networks Auto Poster (SNAP) API', 
      'text'=>'Social Networks Auto Poster (SNAP) API is
         a universal API for the most popular social networks', 
    );  
    // Set message 
    $nxsAutoPostToSN->setMessage($message);
    // Make the post
    $ret = $nxsAutoPostToSN->autoPost(); 
  }
?>

Post a text message with attached link and specific image ONLY to the first and third Twitter accounts and to the first Facebook account

    <?php      
      // First, let's get settings. 
      $fileData = file_get_contents(dirname(__FILE__).'/nx-snap-settings.txt');  
      $snapOptions = maybe_unserialize($fileData);
      $postOnlyTo = array('tw'=-->array(0, 2), 'fb'=>array(0));
      
      if (class_exists("cl_nxsAutoPostToSN")) { 
        // Initialize the class
        $nxsAutoPostToSN = new cl_nxsAutoPostToSN($snapOptions, $postOnlyTo);
        // Message array contains the post
        $message = array(
          'url'=>'https://www.nextscripts.com/snap-api/',
          'urlDescr'=>'Social Networks Auto Poster (SNAP) API', 
          'urlTitle'=>'Social Networks Auto Poster API', 
          'imageURL' => array(
            'large'=>'https://www.nextscripts.com/images/SNAP-Logo_Big_SQ.png'
          ), 
          'title'=>'Social Networks Auto Poster (SNAP) API', 
          'text'=>'Social Networks Auto Poster (SNAP) API is
             a universal API for the most popular social networks', 
        );  
        // Set message 
        $nxsAutoPostToSN->setMessage($message);
        // Make the post
        $ret = $nxsAutoPostToSN->autoPost(); 
      }
    ?>

Please see more code samples and documentation

Requirements

PHP Ver > 5.2 (PHP 7 or 7.1 is recommended)
PHP should have at least 32M of memory (64M and more is highly recommended).
curlSSL
gzip and mbstring are not required but will make things work faster.

Most Popular Question

Can this product read my posts from my database?
Can this product save/read my settings from my database?
Can it post to multiple accounts simultaneously?
Can I set the delay?
Can I set a schedule to automatically repost my messages?


This product is an API. Simply API is a “black box” that you provide with the destination, credentials and message. API will post this message to your destination using your credentials. That’s it, nothing more, nothing less.
You can call it as many times as you like with different destination and credentials ad it will post to different accounts or pages. It’s up you if you would like to save login or not and where you do that. It doesn’t read your messages from the DB, it does not schedule posts or re-posts, it does not do any other functionality. API is a library that you can wrap your own code around.
Our WordPress plugin is a very good example of kind of code could be written around the API.

Premium API for WordPress

API for SNAP WordPress Plugin
$$49.95/year
  • Adds support for all premium networks to SNAP WordPress plugin
  • Post to networks without native API such as Google+, Instagram, Pinterest, LinkedIn, Flipboard, Reddit, XING
  • Not Downloadable, will work only in the SNAP WordPress plugin
  • Special Offer: Get SNAP Pro WordPress Plugin for Free

Premium API for PHP

API Libraries for networks without native API.
$75/Year
  • Full Source (PHP) API Library for networks without Native API (Google+, Instagram, Pinterest, Flipboard, Reddit, XING)
  • Downloadable and can be used for plain PHP Projects
  • Premium API for WordPress is Included.
  • Special Offer: Get SNAP Pro WordPress Plugin for Free

Don’t want a subscription? Interested in discounts for multiyear pre-payments? Not sure what exactly do you need? Please use the advanced product ordering page.

Frequently Asked Questions

Can I use it on multiple sites?

Our licenses are issued on "Per User" basis. It means you can use one license on all your sites, but you can't give it to other people. You can use Plugin and API libraries on all your sites/blogs, the only requirement is that all those sites/blogs must be yours. You can’t re-sell or re-distribute the “Pro” Plugin and API libraries or websites with per-installed “Pro” Plugin and API libraries, neither you can’t install plugin and API libraries for your clients. If you would like to install SNAP to your clients, you need to purchase a separate license for each one of them.

If you are interested in re-selling plugin or would like to install it for your clients you can look at our affiliate program (https://www.nextscripts.com/affiliates/) or developers/resell packages: (https://www.nextscripts.com/developer-and-resale-licenses/)

Is it a one time payment or yearly subscription?

It depends on what you need. There are two products included:
“SNAP Pro WordPress Plugin” plugin itself is one time purchase. “SNAP Pro WordPress Plugin” will give you an ability to post to as many accounts of the same network type as you like and some premium features like random reposting and delayed autoposts. Lifetime plugin upgrades are also included with one time fee.
“SNAP Premium API Libraries” is a yearly subscription. Those libraries will give you an ability to post to networks without native API like Google+, Pinterest, YouTube, Flipboard, LinkedIn Company pages and groups, Reddit, etc.. Those libraries require constant maintenance and to keep them up to date we need a subscription.

Right now we have 2 special offers.
1. You can subscribe to “SNAP Premium API Libraries” ($49.95/year) and get “SNAP Pro WordPress Plugin” for free.
2. You can buy “SNAP Pro WordPress Plugin” for $49.95 (One time payment) and get one year of “SNAP Premium API Libraries” for free.
Basically with both options, right now for paying $49.95 you will get exactly the same thing – “Plugin + API libraries”. It’s just with one time payment option (offer #2) API will stop working after one year. You still be able to enjoy SNAP PRO Plugin for WordPress and all it’s features for as long as you like.

Is it safe to use?

Is it safe to use? Will my social networks accounts be suspended if I autopost? Is it some kind of Blackhat SEO tool? Can I use it for mass postings?

SNAP is not a spam tool. SNAP is not a Blackhat SEO tool. SNAP is not a tool for bypassing any rules of the site where you are autoposting. You need to follow all terms and guidelines of any site or social network you are working with.
None of the networks we support suspend accounts simply based on the fact that you are autoposting there. Do not post spam or content that is not allowed, do not post more posts then allowed, do not abuse the network in any other way and it will be fine.
If you account got suspended for abuse/spam or any other reasons, please contact the social network directly, we can’t explain why that happened.

What is your refund policy?

Refund policy is here: nextscripts.com/refund-policy

Please see more Frequently Asked Questions

What Our Customers Are Saying

Don’t just take it from us, let our customers do the talking!

SNAP is just great. Have it installed for over a year and no complaints so far. I use it to post to Facebook, Twitter and Google+. There are are many customization options. The paid version is also well worth the money.

Excellent plugin

NextScripts: Social Networks Auto-Poster puts all other auto-posters to shame, this is a excellent professional product.
To get the full benefits though you do need to buy the pro version otherwise it will get very frustrating knowing what you could do but can’t but it is not overly expensive.

This plugin is a game changer

This is the most useful plugin out there. Not so easy to config, but does it’s job perfectly. So good for SEO and driving traffic.

The Best Social Posting Plugin for WordPress

Get SNAP Now

SNAP Plugin for WordPress is free to install and use.