Giter Club home page Giter Club logo

push-to-social's Introduction

Push To Social [ Facebook , Twitter , Telegram , Linkedin ]

via this package you can push notifications to [ Facebook , Twitter , Telegram , Linkedin ]

  • content
  • image ( Optional )
  • link ( Optional )
 
	(new SocialHelper($platforms=[],$content=[],$image='',$link=''))->push()

How To Push


	( new SocialHelper(
		['facebook','twitter','telegram','linkedin'],
		['Hello', 'Iam here','Message From Push to social'],
		'https://nafezly.com/site_images/title.png',
		'https://nafezly.com/'
	) )->push();

SocialHelper

You have to install


	composer require abraham/twitteroauth
	composer require facebook/graph-sdk
	composer require laravel-notification-channels/telegram

Migrations for laravel


	Schema::create('social_media_settings', function (Blueprint $table) {
        $table->bigIncrements('id');

        $table->text('facebook')->nullable();
        $table->text('twitter')->nullable();
        $table->text('linkedin')->nullable(); 
        $table->text('telegram')->nullable(); 

        $table->text('publish_settings')->nullable();

        $table->timestamps();
    });

  • Create Jobs folder inside app folder
  • Move all Jobs in the repo to Jobs Folder
  • Create Notifications Folder inside app folder For telegram
  • Move TeleNotification To Notifications folder
  • Move Routes , Models and Controllers To Your Project

Authorize Facebook And Linkedin

Seed Database

-facebook


	{
	   "FB_ACCESS_TOKEN":"",
	   "APP_ID":"",
	   "CLIENT_SECRET":"",
	   "PAGE_ID":"",
	   "REDIRECT_URL":"",
	   "PAGE_ACCESS_TOKEN":""
	}

-twitter


	{
	   "API_KEY":"",
	   "API_SECRET_KEY":"",
	   "BEARER_TOKEN":"",
	   "ACCESS_TOKEN":"",
	   "ACCESS_TOKEN_SECRET":""
	}

-linkedin


	{
	   "CLIENT_ID":"",
	   "CLIENT_SECRET":"",
	   "REDIRECT_URL":"",
	   "SCOPES":"r_emailaddress,r_basicprofile,w_member_social,w_organization_social,rw_organization_admin,rw_ads",
	   "CODE":"",
	   "ACCESS_TOKEN":"",
	   "REFRESH_ACCESS_TOKEN":"",
	   "ACCESS_TOKEN_EXPIRATION_DATE":"",
	   "PAGE_ID":""
	}

-telegram


	{
	   "TELEGRAM_BOT_TOKEN":""
	}

push-to-social's People

Contributors

peter-tharwat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.