当前位置: 动力学知识库 > 问答 > 编程问答 >

php - How do I display a follow "us on twitter" and 'xxx on Facebook, become a fan' on my web page?

问题描述:

I would like to show the following links (I think they are called badges) on my homepage.

Assume my website is called 'abc'

  1. An image saying 'abc' on FaceBook, become a fan (and display a set of random pictures of some of my members)
  2. A 'follow us' on twitter link
  3. Ability to publish changes to my site (e.g. new news etc) to Twitter

An example of this can be seen on startups.com

I am using PHP for development - I would like to learn how to put the Facebook and Twitter links on my homepage.

网友答案:
  1. Facebook Fan Box is exactly what you're talking about

  2. Most people just link a promo image to their Twitter profile. Some free ones here that I've seen a couple sites use.

  3. do you want to automatically Tweet out new posts? Are you using any kind of CMS for which a plugin might be available? Otherwise there are a ton of PHP Twitter libraries out there you can hook into the publish action on your site (assuming you have a custom CMS of some kind). Or if you have an RSS feed setup, you can have Twitterfeed Tweet it out.

    If you just want visitors to be able to easily Tweet out your links, Tweetmeme (among lots of others, but it's the service I'm most familiar with) has a nice Retweet button.

分享给朋友:
您可能感兴趣的文章:
随机阅读: