Download the PHP package contributte/facebook without Composer
On this page you can find all versions of the php package contributte/facebook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contributte/facebook
More information about contributte/facebook
Files in contributte/facebook
Package facebook
Short Description Easy-to-use Facebook login wrapper for [`Nette Framework`](https://github.com/nette/).
License MIT
Homepage https://github.com/contributte/facebook
Informations about the package facebook
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
| :warning: | This project is no longer being maintained. |
|---|
| Composer | contributte/facebook |
|---|---|
| Version | |
| PHP | |
| License |
About
Easy-to-use Facebook login wrapper for Nette Framework.
Installation
Setup
If you are using PHP 8.0+, you need to use forked version of facebook/graph-sdk. You can rely on our fork holyfork/facebook-graph-sdk, it's tested and working.
Configuration
You need to create a FacebookApp and supply these parameters:
- appId
- appSecret
- defaultGraphVersion (optional)
- persistentDataHandler (optional) default value: session
- httpClientHandler (optional)
Usage
Simple example how to use Facebook Login in Presenter
If you need to specify your own state param (more info here mind also checking Enable Strict Mode). Facebook::getLoginUrl() takes optional third parameter $stateParam which FB passes back unchanged.
JavaScript Login
You can also use FB login button, for example:
And use onlogin event to call backend code which takes care of registration/login process:
Versions
| State | Version | Branch | Nette | PHP |
|---|---|---|---|---|
| dev | ^0.4 |
master |
3.0+ | >=7.2 |
| stable | ^0.3 |
master |
3.0+ | ^7.2 |
| stable | ^0.2 |
master |
2.4 | >=7.1 |
Development
This package was maintained by these authors.
Consider to support contributte development team. Also thank you for using this package.
All versions of facebook with dependencies
facebook/graph-sdk Version dev-next
nette/di Version ^3.0.0
nette/http Version ^3.0.1