https://github.com/heshanlk/social_post
Social Post provides a common interface for creating modules related to autoposting to social network services.
https://github.com/heshanlk/social_post
drupal drupal-7 drupal-module
Last synced: about 1 month ago
JSON representation
Social Post provides a common interface for creating modules related to autoposting to social network services.
- Host: GitHub
- URL: https://github.com/heshanlk/social_post
- Owner: heshanlk
- Created: 2018-03-13T19:59:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T23:10:52.000Z (over 8 years ago)
- Last Synced: 2025-01-21T22:35:04.672Z (over 1 year ago)
- Topics: drupal, drupal-7, drupal-module
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Social Post for Drupal 7
Social Post provides a common interface for creating modules related to autoposting to social network services. The module ships with Social Post Facebook and Social Post Twitter.
# Install
Social Post rely on Facebook Graphs API and Twitter oAuth API.
## Download Dependencies
```
cd sites/all/modules/social_post
composer install
```
## Manually Download Depandencies
```
cd sites/all/modules/social_post
composer require facebook/graph-sdk
composer require abraham/twitteroauth
```
## For Developers
It is really esay to add new services, see `social_post.api.php` for details.
```
function hook_social_post_accounts(){
return array(
'twitter' => array(
'name' => 'Twitter',
'settings' => array(
'consumer_key' => array(
'#type' => 'textfield',
'#title' => t('Consumer Key')
),
'consumer_secret' => array(
'#type' => 'textfield',
'#title' => t('Consumer Secret')
)
),
'authentication' => '_social_post_twitter_social_post_authentication_callback',
'post_authentication' => '_social_post_twitter_social_post_post_authentication_callback',
'publish' => '_social_post_twitter_social_post_publish_callback',
'accounts' => '_social_post_twitter_social_post_get_accounts_callback'
);
);
}
```