rahul/socialconnect

A Social media multi channel connector for TYPO3 Neos

0.3 2014-07-28 06:08 UTC

README

A multi Channel Social Connector for TYPO3-Neos.Project for Google Summer Of Code .

Working now:

  • Facebook Publishing - Currently works for any NodeType.Depending on the NodeType Override can be wrriten.Currently Page/Headline/Text are supported by Default.
  • Twitter Publishing - Twitter Publishing Works and provides a link to the site along with the the tweet.
  • Preview System to show what the post will look like once posted.
  • Blogger posting for a simple Page/Document with a single headline and a Text field following it.feel free to create your own NodeTypes to support it better.

Setup for Preview:

  • Include the Root.ts2 of this package in the Root.ts2 of the site.

Facebook:

Setup:

  • Add "facebook/php-sdk-v4" : "4.0.*" in your composer.json file and run composer update
  • Replace APP ID and access token's with your access tokens
  • Select Channel to Facebook in inspector of Node to enable Facebook Connect.
  • CSS files for Preview haven't been added to avoid any license issues.

Access Tokens:

  • Access tokens are required for an app to post on behalf of a user.
  • There are 2 scenarios here,where the user would want to post to be shared on his personal wall and the other scenario being shared on his page.
  • If you want to post to a user wall you need to update your access token every 2 months,where as page tokens are valid forever

User Feed:

  • Get a Facebook developer account if you don't have one. Click Here
  • Create a Facebook App in the dashboard
  • Head over to the Facebook Graph API Explorer
  • Choose your app in the application tab and click on generate access token,be sure to select the permission to access and write on the feed.
  • Convert this access token into a long lived one by https://graph.facebook.com/oauth/access_token?client_id=< your FB App ID> &client_secret= < your FB App secret> &grant_type=fb_exchange_token&fb_exchange_token=< your short-lived access token>
  • Grab the long lived token and paste in the Settings.yaml of this Package,along with app id and app secret,set the user to 'me'.

Page Access:

  • Make sure you are the admin of the page you want to post to.
  • Get a Facebook developer account if you don't have one. Click Here
  • Create a Facebook App in the dashboard
  • Head over to the Facebook Graph API Explorer
  • Make sure you add the manage_pages permission
  • Choose your app in the application tab and click on generate access token,be sure to select the permission to access and write on the feed.
  • Convert this access token into a long lived one by https://graph.facebook.com/oauth/access_token?client_id=< your FB App ID> &client_secret= < your FB App secret> &grant_type=fb_exchange_token&fb_exchange_token=< your short-lived access token>
  • Make a Graph API call to see your accounts using the new long-lived access token: https://graph.facebook.com/me/accounts?access_token=< your long-lived access token>
  • Grab the access token for your page and check if it does not expire Debug token
  • Grab the permanent token and paste in the Settings.yaml of this Package,along with app id and app secret,set the user to 'page id'.

#Twitter:

Setup:

  • make sure you have "jublonet/codebird-php": "dev-develop" in your composer.json and the package is installed in your libraries folder.
  • replace the below details in your configuration.yaml file .
  • select twitter in your inspector to automatically post to twitter

Twitter Dev account and Access token:

  • Go here and sign in with your account.The account you are posting with.
  • Create a new Twitter Application.
  • Set the permissions to read and write.If you have any troubling relating to account verification.just write to Twitter suppoer to grant you r/w permissions.
  • create access token from the API keys page.
  • Grab all the information and replace them in the Twitter section of the Settings.yaml

#Blogger:

Setup:

  • Just add your username/password of your google account in the Config file to start blogging.