Download the PHP package pitchanon/facebook-connect without Composer

On this page you can find all versions of the php package pitchanon/facebook-connect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package facebook-connect

Facebook Connect for Laravel 4

Facebook Connect is a useful to create app facebook and get testing request.

Installation

To get the lastest version of Theme simply require it in your composer.json file.

"require": {

    "pitchanon/facebook-connect": "dev-master"

}

You'll then need to run composer install or composer update to download it and have the autoloader updated

or

You can install this bundle by running the following CLI command.

$ php artisan bundle:install Laravel4-FacebookConnect

Once Theme is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.

'providers' => array(

    'Pitchanon\FacebookConnect\FacebookConnectServiceProvider'

)

Usage

Getting Started with the Facebook SDK for PHP.

In Controller.

Getting Started

Use a single object of a class throughout the lifetime of an application.

// Use a single object of a class throughout the lifetime of an application.
$application = array(
    'appId' => 'YOUR_APP_ID',
    'secret' => 'YOUR_APP_SECRET'
    );
$permissions = 'publish_stream';
$url_app = 'http://laravel-test.local/';

// getInstance
FacebookConnect::getFacebook($application);

getUser


$getUser = FacebookConnect::getUser($permissions, $url_app); // Return facebook User data

var_dump($getUser);

Post to wall

// post to wall facebook.
$message = array(
    'link'    => 'http://laravel-test.local/',
    'message' => 'test message',
    'picture'   => 'http://laravel-test.local/test.gif',
    'name'    => 'test Title',
    'description' => 'test description',
    'access_token' => $getUser['access_token'] // form FacebookConnect::getUser();
    );

FacebookConnect::postToFacebook($message, 'feed'); // return feed id 1330355140_102030093014XXXXX

Check user likes the page in Facebook

// Check user likes the page in Facebook.
$page_id = 'FACEBOOK_PAGE_ID';
$user_id = $getUser['user_profile']['id']; // form FacebookConnect::getUser();

$check_like_fan_page = FacebookConnect::getUserLikePage($page_id, $user_id);

if (!empty($check_like_fan_page) && array_key_exists('uid', $check_like_fan_page[0]) && $check_like_fan_page[0]['uid'] == $user_id) {
    echo 'LIKE';
else {
    echo 'DONT LIKE';
}

Demo

Facebook application.

NOTE: Permission demo publish_stream, read_stream, manage_pages, email, user_likes, user_photos.

Support or Contact

If you have some problem, Contact [email protected]

http://www.playdn.com/


All versions of facebook-connect with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.x
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pitchanon/facebook-connect contains the following files

Loading the files please wait ....