New API library from NextScripts can automatically share texts, images and links to Facebook.
NextScripts API for Facebook could post to:
- Facebook Profiles
- Facebook Business Pages
- Facebook Community Pages
- Public Groups
- Closed Groups
- Secret Groups
What is it? I thought Facebook has its own free native API!
Not anymore. Facebook had a free native API since 2010. it was working perfectly fine up until the summer of 2017 when Facebook made it much more complicated to setup and use. After that it all went downhill pretty fast. Every month Facebook was messing up its API more and more. Facebook disabled an ability to post to groups on March 10 2018, then Facebook disabled an ability to post to profiles on April 25 2018. Finally, Facebook closed an unrestricted access to its native API on May 1, 2018.
It was time for an alternative.
How to use it – WordPress:
It’s very easy to configure NextScripts API for Facebook in WordPress plugin. All you need is to get user id and session id from your browser. You will be able to select where to post (profile, page or group) from the list. Please see the detailed instructions here: NextScripts API for Facebook Configuration
How to use it – PHP: Let’s see some code:
Share a link to Facebook profile:
<?php require_once "nxs-api/nxs-api.php"; require_once "nxs-api/nxs-http.php"; require_once "inc/nxs-functions.php"; $cName = 'YourFBCName'; $SessionID = 'YourFBSessionID'; $whereToPost= 'https://www.facebook.com/PageProfileOrGroup'; $message = array( 'pText' => 'Post this to Facebook', 'url' => 'http://www.YourWebsiteURL.com/' ); $nt = new nxsAPI_FB(); $nt->sid = array('cn'=>$cName, 'xs'=>$SessionID); $result = $nt->post($whereToPost, $message); 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>"; ?>
Get SNAP API
Facebook API is a part of NextScripts Premium and Universal API packages.
NextScripts Premium API for WordPress and PHP provides an ability to autopost to social networks without native built-in APIs.
NextScripts Universal API for PHP provides a unified API interface for autoposting to more then 25 different social networks including Google+, Pinterest, Flipboard, Reddit, YouTube, Blogger, and LinkedIn Company Pages as well as Facebook, Twitter, Tumblr, Flickr, ScoopIt and many others.
Exactly 6 months ago (August 1, 2018) Facebook closed unrestricted access to its official API. Several hours later they backed down and gave all API users 6 more months to obtain app approvals. Six months passed and, as promised, today (February 1, 2019) they closed unrestricted access to its official API again. Looks like this […]
As promised earlier, yesterday Facebook disabled all unapproved apps. We are guessing they received several billion complains right after that. That forced Facebook to back down a little bit. Facebook just sent this to all app developers: Today, August 1, is the deadline for apps to begin this app review and maintain access to the Pages API, […]
API 4.3.9 adds NextScripts Premium API for Facebook. You can download new API files from https://www.nextscripts.com/mypage
That was inevitable and it finally happened. Facebook officially closed unrestricted access to its API. 90-Day Breaking Changes All Apps Public Mode — Apps in public mode no longer allow their admins, developers, or testers to access permissions or features that normally require app review. This affects all apps built after May 1st, 2018, immediately. Apps […]
Original NextScripts Premium API for Facebook came out only with support for autoposting to Groups. Today we are releasing full featured API. Autoposting to profiles. Autoposting to pages (All types). If you are an admin of the page, posts will be made as “page name”. Autoposting to groups (All types). Comments import. Available today as […]
All new Facebook applications (created today – Apr 25, 2018) can’t be authorized with publish_actions permission. Facebook just complitely broke an ability to post through its native API. All apps that were created before today are still working fine and can be authorized without any new issues. All apps created today show this error during […]
NextScripts API for Facebook is joining NextScripts Premium API family. Official native Facebook API was going downhill for quite some time. It used to work fine and it had all necessary features, but during the last year it lost a lot of functionality. Here is the list of some major changes made by Facebook recently: […]
This page was updated on May 3, 2018. Facebook recently became a major troublemaker for the SNAP. [March 2018] Unstable Graph API 2.12 It started with the release of the very buggy and unstable Graph API 2.12. The first thing it broke is the ability to post to pages as “page name”. Posts were posted […]
Facebook Graph API 2.12 came with another huge functionality killing announcement. Facebook disabled the ability to post to “Public” groups where you just a member in Graph API 2.12 with 90 Days depreciation delay for earlier API versions. It means that if you made a Facebook App after January 30, 2018, you won’t be able […]
Your apps currently have access to Graph API v2.5 which will reach the end of its 2-year lifetime on 12 April, 2018
Facebook just sent out announcement about the end of Graph API v2.5. We would like to remind you that SNAP is 100% compatible with all Facebook Graph API versions from 2.0 to the latest 2.12. Once 2.5 reach its end of lifetime, SNAP will automatically start using the next available version. No actions from you […]
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).
gzip and mbstring are not required but will make things work faster.
NextScripts Premium API for WordPress
SNAP Pro Plugin for WordPress is included with NextScripts Premium API for WordPress order.
NextScripts Premium API for PHP
Autopost to social networks without native built-in APIs: Facebook, Instagram, Google+, Pinterest, Reddit, Flipboard, ScoopIt.