2017 © Pedro Peláez
 

library socialwall

Create a pretty social feed integrating your favourite social media accounts.

image

geonetsolutions/socialwall

Create a pretty social feed integrating your favourite social media accounts.

  • Thursday, June 14, 2018
  • by geonetsolutions
  • Repository
  • 2 Watchers
  • 5 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 36 % Grown

The README.md

Geonet Solutions, (*1)

Total Downloads Latest Stable Version License, (*2)


Introduction

A simple package that integrates with different social platforms to provide a easy to use Social Wall for your next project., (*3)


Current Social Integrations

  • Facebook
  • Instagram
  • Twitter

Installation Laravel 5.5 +

  1. Composer require the package:, (*4)

    composer require geonetsolutions/socialwall, (*5)

  2. Let Laravel 5.5/5.6 Automatic Package Discovery do its thang!, (*6)


Installation Laravel 5.4

  1. Composer require the package:, (*7)

    composer require geonetsolutions/socialwall, (*8)

  2. Register the service provider in config\app.php providers array:, (*9)

    Geonetsolutions\Socialwall\SocialWallServiceProvider::class, (*10)


Publishing the Included Assets / Config

To publish the included Vue.js Social Wall Component Run php artisan vendor:publish., (*11)

If you are provided with a list choose the option marked: Geonetsolutions\Socialwall\SocialwallServiceProvider., (*12)

The component will be copied into resources/assets/js/components/GeonetSocialWallComponent.vue. Obviously if this doesn't suit your project you can easily override it or implement your own., (*13)

The Config file will be published into your main application config folder: socialwall.php., (*14)


Implementing the Included Vue Component

Having setup your application front end tooling using the Laravel docs https://laravel.com/docs/5.6/frontend implement the included example component as follows:, (*15)

  1. In your application app.js add the following:
Vue.component('geonet-socialwall', require('./components/GeonetSocialWallComponent.vue')); <--- Add This
Vue.component('example-component', require('./components/ExampleComponent.vue'));

const app = new Vue({
    el: '#app',
});
  1. Compile your front end assets npm run dev if using Laravel Mix https://laravel.com/docs/5.6/mix, (*16)

  2. Include the <geonet-socialwall></geonet-socialwall> in your view to see the component output., (*17)


Customising the Component Output

If you want to switch the component from the default grid layout to a feed layout, simply add the wall_style property and set it to feed, (*18)

<geonet-socialwall wall_style="feed"></geonet-socialwall>, (*19)


Package Configuration Options

To override the package configuration use the following environment variables., (*20)

Key Required value Description
SOCIALWALL_DEV_MODE TRUE/FALSE Default is set to false. Enabled debug mode
TWITTER_CONSUMER_KEY * STRING Consumer key as provided by Twitter
TWITTER_CONSUMER_SECRET * STRING Consumer secret as provided by Twitter
TWITTER_OAUTH_ACCESS_TOKEN * STRING Consumer OAuth access token as provided by Twitter
TWITTER_API_URL STRING URL of the Twitter API, By Default the Users Timeline
TWITTER_NUMBER_TWEETS INTEGER How many tweets to pull in, default is 10
FACEBOOK_APP_ID * STRING App ID as Provided by Facebook
FACEBOOK_APP_SECRET * STRING App Secret as provided by Facebook
FACEBOOK_PAGE_ID * STRING Page ID of the Facebook Page to be streamed
FACEBOOK_REDIRECT_URI * STRING Redirect URI for Facebook
FACEBOOK_NUMBER_POSTS INTEGER Number of Facebook Posts to Pull
INSTAGRAM_ACCESS_TOKEN * STRING Instagram Access Token
INSTAGRAM_NUMBER_PHOTOS INTEGER Number of Instagram photos to pull, defaults to 10

Note: Use the following link to get the access token for instagram, (*21)

https://api.instagram.com/oauth/authorize/?client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URI]&response_type=token, (*22)


ENV Variables

Easy Copy & Paste ENV Variables! You're Welcome! :+1:, (*23)

SOCIALWALL_DEV_MODE

TWITTER_CONSUMER_KEY

TWITTER_CONSUMER_SECRET

TWITTER_OAUTH_ACCESS_TOKEN

TWITTER_OAUTH_ACCESS_TOKEN_SECRET

TWITTER_API_URL

TWITTER_NUMBER_TWEETS

FACEBOOK_APP_ID

FACEBOOK_APP_SECRET

FACEBOOK_PAGE_ID

FACEBOOK_REDIRECT_URI

FACEBOOK_NUMBER_POSTS

INSTAGRAM_ACCESS_TOKEN

INSTAGRAM_NUMBER_PHOTOS

Lewis Thompson, (*24)

The Versions

14/06 2018

dev-master

9999999-dev http://github.com/geonetsolutions/socialwall

Create a pretty social feed integrating your favourite social media accounts.

  Sources   Download

MIT

The Requires

 

by Lewis Thompson

02/03 2018

v1.0.1

1.0.1.0 http://github.com/geonetsolutions/socialwall

Create a pretty social feed integrating your favourite social media accounts.

  Sources   Download

MIT

The Requires

 

by Lewis Thompson

22/02 2018

v1.0.0

1.0.0.0 http://github.com/geonetsolutions/socialwall

Create a pretty social feed integrating your favourite social media accounts.

  Sources   Download

MIT

The Requires

 

by Lewis Thompson