Module that enables access to social plugins for Yii Framework 2.0. It includes support for embedding plugins from the following networks into your website:
The preferred way to install this extension is through composer.
NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
$ php composer.phar require kartik-v/yii2-social "@dev"
or add
"kartik-v/yii2-social": "@dev"
to the require
section of your composer.json
file.
You can view usage and demos on the module.
'modules' => [
'social' => [
// the module class
'class' => 'kartik\social\Module',
// the global settings for the disqus widget
'disqus' => [
'settings' => ['shortname' => 'DISQUS_SHORTNAME'] // default settings
],
// the global settings for the facebook plugins widget
'facebook' => [
'app_id' => 'FACEBOOK_APP_ID',
'app_secret' => 'FACEBOOK_APP_SECRET',
],
// the global settings for the google plugins widget
'google' => [
'clientId' => 'GOOGLE_API_CLIENT_ID',
'pageId' => 'GOOGLE_PLUS_PAGE_ID',
'profileId' => 'GOOGLE_PLUS_PROFILE_ID',
],
// the global settings for the google analytic plugin widget
'googleAnalytics' => [
'id' => 'TRACKING_ID',
'domain' => 'TRACKING_DOMAIN',
],
// the global settings for the twitter plugins widget
'twitter' => [
'screenName' => 'TWITTER_SCREEN_NAME'
],
],
// your other modules
]
yii2-social is released under the BSD-3-Clause License. See the bundled LICENSE.md
for details.
yii2-social
Date: 31-Oct-2019
load()
for VK plugin.Date: 21-Sep-2018
kartik\base\Module
Date: 19-Sep-2018
src
directory.Date: 15-Mar-2017
FacebookPlugin::SAVE
button.kartik\social\FacebookPersistentHandler
.Date: 16-Aug-2016
Date: 19-Jul-2015
en
message translation file.FacebookPlugin::async
property.Date: 13-Feb-2015
FacebookRedirectLoginHelperX
class for handling sessions the Yii waygetFbLoginHelper
method in social module to fetch the Redirect Login Helper object instance based on the module level facebook settingsinitFbSession
method in social module to initialize a facebook sessiongetFbSession
method in social module to get a facebook session either based on string token, redirect login url, canvas login, or Javascript login.getFbGraphUser
method gets the Facebook graph user object for current user.getFbApi
has been removed from the social modulegetFbUser
has been removed from the social moduleanonymizeIp
.GoogleAnalytics
widget:
testMode
property that defaults to YII_DEBUG
definition to allow google analytics to work from localhost.__gaTracker
.trackerConfig
settings for creation of the ga object.sendConfig
settings for sending of the ga data.anonymizeIp
property.social
module to be used as an embedded submodule.Date: 10-Nov-2014
Date: 01-Jul-2014
Date: 01-Dec-2013
Comments