1. Go to this page and download the library: Download jringeisen/social-share library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jringeisen / social-share example snippets
composer
composer
php artisan migrate
route('facebook.oauth') // Authenticates facebook and instagram
route('facebook.callback') // Redirect to dashboard and stores pages in database
route('twitter.oauth') // Authenticates twitter
route('twitter.callback') // Redirect to dashboard and stores pages in database
// Get our Facebook page that was stored in the database when we connected to it.
$page = Jringeisen\SocialShare\SocialPage::where('platform', 'facebook')->first();
// Initialize the Facebook class with our facebook page.
$facebook = new Jringeisen\SocialShare\Facebook($page);
// Post a link with text to Facebook
$facebook->postLink($link, $text);
// Post a photo wtih text to Facebook
$facebook->postPhoto($url, $text);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.