2017 © Pedro Peláez
 

library facebookfeed

FacebookFeed API for Laravel

image

denismitr/facebookfeed

FacebookFeed API for Laravel

  • Sunday, June 26, 2016
  • by denismitr
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FacebookFeed API for Laravel

by Denis Mitrofanov 2016, (*1)

Install

composer require denismitr/facebookfeed

Add Denismitr\FacebookFeed\FacebookFeedServiceProvider.php to Laravel's config/app.php providers array. And also you can use FacebookFeed facade also by adding Denismitr\FacebookFeed\Facades\FacebookFeed.php to config/app.php the facades array, (*2)

Usage

At this moment there are two main methods in the FacebookFeed API:, (*3)

  • [image](#Upload an image)
  • [link](#Send a link to a webpage)

Upload an image

FacebookFeed::image('Some message', '/path/to/image.jpg')->send();
Facebook::link('Some message', 'http://a_link.to/a_page')->send();

Exceptions

There are three exception classes:, (*4)

//Invalid facebook api variables
Denismitr\FacebookFeed\Exceptions\InvalidEnvSetting.php

//File is not readable
Denismitr\FacebookFeed\Exceptions\InvalidFilePath.php

//Error while sending to facebook
Denismitr\FacebookFeed\Exceptions\SendToFacebook.php

Environment variables

The environment variables must be set like so:, (*5)

  • FACEBOOK_ID=your facebook id
  • FACEBOOK_SECRET=your facebook secret key
  • FACEBOOK_API=v2.6
  • FACEBOOK_TOKEN=your facebook token

Important

The long-term Facebook access token you can get through the Graph API Explorer and it is required to get it from the name of the Facebook APP you are using, but connected to the user account., (*6)

The Versions

26/06 2016

dev-master

9999999-dev

FacebookFeed API for Laravel

  Sources   Download

MIT

The Requires

 

laravel facebook

26/06 2016

v1.0.2

1.0.2.0

FacebookFeed API for Laravel

  Sources   Download

MIT

The Requires

 

laravel facebook