Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4099340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:25:16+00:00 2026-05-20T20:25:16+00:00

I know there are quite a few libraries out there that that allow Twitter

  • 0

I know there are quite a few libraries out there that that allow Twitter to be integrated into a website. But I haven’t yet found what I am looking for (or maybe my understanding of twitter API is lacking). I want to be able to tweet events that occur on my website – BUT in addition, I want to be able to add tweeted from http://www.example.

For instance, when I send tweets from my blackberry or iphone (or indeed from some other sites), underneath the tweet, there is a message that says, tweeted from (for example blackberry). Does anyone know of a PHP library or class that allows me to send tweets but also with a kind of ‘signature’ that says where the tweet was sent from?

Edit

Additionally, I want users to be able to tweet from my website. When they tweet, I would like the tweet to say that where it came from (for example, like it does for blackberry phones etc, as I described above).

It is not clear to me whether I still need a PHP application for this requirement, and also how to implement it. Do I need an additional library for allowing users to tweet from my website?

Note: my users do not log into my website using a twitter login, so my website does not have access to a users Twitter username/password etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:25:17+00:00Added an answer on May 20, 2026 at 8:25 pm

    First you must register an app at http://twitter.com/apps, then you can use this twitter class -> http://classes.verkoyen.eu/twitter_oauth

    I wrote a tutorial on how to do this http://blog.cmstutorials.org/reviews/general/how-to-update-your-twitter-status-using-php , just follow the steps and you should be good to go

    edit: how to include a link

    you can write function to get a shortened url because you only have 140 charachters
    you can then use this function:

    function getBitlyUrl($url)
      {
                    $bitlylogin = 'your login name';
                    $bitlyapikey= 'your api key';
                    $bitlyurl = file_get_contents("http://api.bit.ly/shorten?version=2.0.1&longUrl=".$url."&login=".$bitlylogin."&apiKey=".$bitlyapikey);
                    $bitlycontent = json_decode($bitlyurl,true);
                    $bitlyerror = $bitlycontent["errorCode"];
                    if ($bitlyerror == 0) {
                    $bitlyurl = $bitlycontent["results"][$url]["shortUrl"];
                    }
                    else $bitlyurl = "error";
                    return $bitlyurl;
      }
    

    then just call it like this:

    $url = getBitlyUrl('yourlink');
    

    you can then just add $url to your tweet

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are quite a few line count tools around. Is there something
I know there have been a few threads on this before, but I have
I know there is a registry key indicating the install directory, but I don't
I know there are a lot of positive things mod-rewrite accomplishes. But are there
I know there is a function somewhere that will accept a client rect and
I know there are HTML entities for 1/2, 1/4, and 3/4, but are there
There seem to be quite a number of OBJ mesh file loaders out there
I have an app that uses quite a few graphics in it. When I
I know there is a way to add a IE control, how do you
I know there's some JAVA_OPTS to set to remotely debug a Java program. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.