Tự động cập nhật nội dung lên Social Networks từ Drupal site

Tự động cập nhật nội dung lên Social Networks từ Drupal site

Would you like to be able to update your Drupal site and automatically send those updates to Twitter, Facebook, Linkedin, MySpace, Ning and dozens of other sites?

This tutorial will show you how.

Our first part will be to create an RSS feed to export new posts. From there we'll use Twitterfeed.com and Ping.fm to distribute the posts to all our social networks.

Creating an RSS Feed

There are at least three ways you export an RSS feed from your Drupal site. We'll break the options into easy, medium and hard:

Easy: You can just use Drupal's default feed. Simply add rss.xml to site's address. For example the main Drupal.org feed is at http://drupal.org/rss.xml. The downside is that you don't have much control of the feed's content. Whatever is on your site's frontpage will be included.

Medium: A module called "Syndication" will give you more control"

  • Drupal RSS FeedsStep 1: Visit http://drupal.org/project/syndication to download the latest version of "Syndication".
  • Step 3: Extract the files into a folders on your desktop. The folder will be called "syndication".
  • Step 4: Login to your site's files via FTP and navigate to /sites/all/. If there isn't a folder called /modules/ here, create one.
  • Step 5: Upload the "syndication" folder to /sites/all/modules/
  • Step 6: Go to Administer >> Site building >> Modules and enable "Syndication".
  • Step 7: In your admin menu you should now see an option called "RSS Feeds". Click on this menu link and you'll be able to create custom feeds based on either particular taxonomies or on particular blogs from the Blogs module.

Hard: You can use the "Views" module to completely customize your RSS feed. Full instructions are here.

Whichever route you use, the key is to end up with a URL for your feed at the end. Keep that safe and we'll use in a few minutes.

Sending your Feed to Twitter and Facebook

feed url

  • Step 8: We're going to use a service called Twitterfeed to send our news automatically to both Twitter and Facebook. The first step is to visit Twitterfeed.com and register.
  • Step 9: Login to Twitterfeed and click "Create New Feed".
  • Step 10: You'll see a box like the one below. Enter the title, and then paste the RSS feed from Step 6:
  • Step 11: Click "test rss feed" to make sure everything is OK. If it is, click "Continue to Step 2".
  • Step 12: This next part allows you to send your feed to Twitter and Facebook amongst other options:

    feed url

  • Step 13: Twitter and Facebook will allow you to authenticate your accounts and link them to Twitterfeed directly from this page. You can also add "UTM" tags which are designed for Google Analytics. They will show in your analytics results, so you can see how much traffic has been sent from Twitter or Facebook.

    Automatically Update All Your Social Networks From Drupal

  • Step 14: The final step is a really powerful feature here that many people overlook ... Ping.fm. If you create an account and authenticate it here with Twitterfeed, you can then pass on your updates to Linkedin.com, MySpace.com, Ning.com and dozens of others. There is a full list available here.
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Mac Pro 2013 bị chê chẳng khác gì nhân vật Darth Vader

Mac Pro 2013 bị chê chẳng khác gì nhân vật Darth Vader

Trong lúc không ít người trầm trồ với thiết kế hình trụ độc đáo, đẹp mắt của Mac Pro 2013 mà Apple vừa ra mắt tại WWDC 2013, vẫn có ý kiến chê sản phẩm này chẳng khác gì nhân vật Darth Vader trong phim Chiến tranh giữa các vì sao, hay tệ hơn, y hệt thùng rác dưới ga điện ngầm.

Flippa

Tìm ý tưởng Keyword Research cho website từ Flippa

Khi bạn bắt đầu làm một trang web để kiếm tiền từ Google Adsense, bạn thường quan tâm rằng không biết sau những tháng ngày SEO từ khóa lên hạng 1 rồi, trang web có được lượng visit như mong muốn không.

Adding a WYSIWYG Editor to Your Drupal Site

Thêm WYSIWYG Editor trong Drupal Site của bạn

WYSIWYG stands for "What You See Is What You Get" ... if you select some text and click the "bold" button, that text will be bold. If you select some text and click the "italic" button, that text will be in italics. There's no messing around with HTML. That will be a relief to some of you and more particularly ... your clients and site visitors.

Công ty diệt chuột T&C

 

Diet con trung