How to push latest news enteries directly to Facebook and Twitter

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
wavesailor's picture

Hi,

I have a client who would like to push their latest news / mini blog auto-magically out to their Facebook and Twitter accounts.

Is there a module for this?
Or can anyone recommend a preferred method for doing this?
I scoured the net but did not find a suitable method.

Comments

For Facebook it's easy, just

Liliplanet's picture

For Facebook it's easy, just create your rss feed and then go to http://apps.facebook.com/rssgraffiti/ where you create a publishing plan.

see the app in action at http://www.facebook.com/groups/liliplanet/

Ah that's cool - More of a

wavesailor's picture

Ah that's cool - More of a pull than a push - perfect.

The client has a "page" on Facebook, so would I be able to send as the "page" rather than as their personal self?

I see your posts are as yourself - but then you are posting to a "group" rather than a "page"

You can post to a group or

Liliplanet's picture

You can post to a group or page. It also gives you the capability to publish more than 1 feed. Don't remember, but pretty sure you can select who the author is.

Perfect. Thanks

wavesailor's picture

Perfect.

Thanks

Use Twitter and OAUTH

stewest's picture

Hi.

I've use the twitter module, where I also link the Twitter account to the client's Facebook page. When the Drupal site sends the tweet (on node save / publish), it goes to Twitter and then through to Facebook.

Make sure to read the Twitter module instructions, as you need certain versions of the Twitter module (latest I think), OAUTH and Autoload.

http://drupal.org/project/twitter

http://drupal.org/project/oauth

Hope that is helpful.

Ah nice ... Post to twitter

wavesailor's picture

Ah nice ... Post to twitter and twitter posts to facebook

Thanks.

Selecting to post to twitter

crasher's picture

Sideswitch

I noticed your comment about using the twitter module and OAuth modules. I have created a content type of news articles - can you advise how i would add a select function of (post to twitter) so that my client can decide whether or not to post this to twitter or create a simply news article node. Any help would be greatly appreciated.

Thanks

Hi there There has been a

stewest's picture

Hi there

There has been a very recent change in how Twitter API works, and so you need to use the latest twitter and OAuth modules to post to twitter. I then get my twitter profile to post to my facebook profile / page.

You need latest versions of:

http://drupal.org/project/twitter
http://drupal.org/project/oauth
And I think you need Autoload. http://drupal.org/project/autoload

Make sure to read the install instructions as you also need to login to your twitter profile, and create a Twitter App at https://dev.twitter.com/

Most of what you need to know is in the readme / online docs.

Thanks

crasher's picture

Thanks for your feedback

This all seems fine, i have been following this tutorial http://www.youtube.com/watch?v=Zy1iqnG_3oY on how to post from content type to twitter. I have created the API under the associated account but when i go into the content, i cannot see Publish to twitter. Am i missing something? I have installed Twitter 7.x-4.1 and OAuth 7.x-3.0

Sorry if this seems tedious.

Paul

Platform

crasher's picture

Sorry, i should say that i am running this all on Windows as localhost before migrating to live server.

Hi there Best bet is to

stewest's picture

Hi there

Best bet is to follow this: http://drupal.org/node/1346824

It sounds like still need to do this:
- Select what content type you want to update your Twitter stream.
In admin menu Configuration-> Twitter-> Post (/admin/config/services/twitter/post)

If you have set up OAuth, Dev.Twitter app, added the twitter account to an admin type user on Drupal and done the above step, upon creating new articles you should now see Post to twitter.com option.

Error on creating account

crasher's picture

Thanks for this, i have been missing the twitter account to be set on the admin account within drupal. i have tried to add an account on the admin and get the following error

Notice: Undefined property: stdClass::$data in Twitter->request() (line 131 of D:\xampp\htdocs\itworx\sites\all\libraries\twitter\twitter.lib.php).

I have however got the twitter.lib.php file within the relevant folder. Sorry to trouble you..

Got it working

crasher's picture

Thanks for your help. I finally got it to push out to Twitter. The reason why it did not work was 1. I was running locally on my machine, 2. I had to create a new admin account as it would not assign to the original admin account details.

Thanks for your help.

Are you aware if you can do the same with feeding to LinkedIn

An alternative

rcodina's picture

1) Configure RSS views
2) Go to https://dlvr.it/ and configure the publishing to facebook and twitter