Download the PHP package saurabhinfosys/my-social-posts without Composer
On this page you can find all versions of the php package saurabhinfosys/my-social-posts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download saurabhinfosys/my-social-posts
More information about saurabhinfosys/my-social-posts
Files in saurabhinfosys/my-social-posts
Download saurabhinfosys/my-social-posts
More information about saurabhinfosys/my-social-posts
Files in saurabhinfosys/my-social-posts
Vendor saurabhinfosys
Package my-social-posts
Short Description A package to load Instagram and Facebook page posts
License
Package my-social-posts
Short Description A package to load Instagram and Facebook page posts
License
Please rate this library. Is it a good library?
Informations about the package my-social-posts
My Social Posts
A PHP package to load Instagram and Facebook page posts.
Installation
Install via Composer:
composer require saurabhinfosys/my-social-posts
## Setup into your project
use MySocialPosts\Instagram;
use MySocialPosts\Facebook;
// Replace with your actual access tokens and page/user IDs
$instagramAccessToken = 'YOUR_INSTAGRAM_ACCESS_TOKEN';
$facebookAccessToken = 'YOUR_FACEBOOK_ACCESS_TOKEN';
$facebookPageId = 'YOUR_FACEBOOK_PAGE_ID';
// Instantiate the Instagram class and get posts
$instagram = new Instagram($instagramAccessToken);
$instagramPosts = $instagram->getPosts();
print_r($instagramPosts);
// Instantiate the Facebook class and get posts
$facebook = new Facebook($facebookAccessToken);
$facebookPosts = $facebook->getPosts($facebookPageId);
print_r($facebookPosts);
All versions of my-social-posts with dependencies
PHP Build Version
Package Version
The package saurabhinfosys/my-social-posts contains the following files
Loading the files please wait ....