SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 32
  1. #1
    Team ********* Louis Simoneau's Avatar
    Join Date
    Sep 2009
    Location
    Melbourne, Australia
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Notice: This is a discussion thread for comments about the SitePoint article, OAuth for PHP Twitter Apps, Part I.
    __________

    For those of you that have already moved your apps to OAuth (as you should have!), how was it? If you missed the deadline, are you planning to update your code soon?

  2. #2
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    : / I cant find the 7 digit pin

  3. #3
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have that error in the register.php file


    Fatal error: Call to undefined function curl_init() in C:\wamp\www\twitteroauth\twitteroauth.php on line 199

  4. #4
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have that error in the register.php file


    Fatal error: Call to undefined function curl_init() in C:\wamp\www\twitteroauth\twitteroauth.php on line 199

  5. #5
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    edit php.ini
    comment out extension=php_curl.dll

    restart apache
    my mobile portal
    ghiris.ro

  6. #6
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Ernie1

    Thank you Ernie1, but still don't work !!

  7. #7
    PHP Guru lampcms.com's Avatar
    Join Date
    Jan 2009
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been using pecl OAuth library for over 6 months now. I find it much easier to use then a class, it's also universal and can be used to access many other OAuth based sites.
    There is a nice tuturial written by Rasmus Lerdorf (creator of php and he also one of the authors of this pecl class)
    Read it here: http://toys.lerdorf.com/archives/50-...o-Twitter.html

    Enjoy
    My project: Open source Q&A
    (similar to StackOverflow)
    powered by php+MongoDB
    Source on github, collaborators welcome!

  8. #8
    PHP Guru lampcms.com's Avatar
    Join Date
    Jan 2009
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By the way, there is a good documentation on php website about oauth module:
    http://us.php.net/oauth

    It's just much better to use the module than a class. The reason why that class (in the article) became somewhat popular is because at the time it was written the php's own oauth module was still in alpha, so there was no existing classes for oauth then. Now than php's own oauth module is version 1 (still dev, but stable), there is no reason to use anything else.
    My project: Open source Q&A
    (similar to StackOverflow)
    powered by php+MongoDB
    Source on github, collaborators welcome!

  9. #9
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've followed every step in detail. Everything has gone like explained, except there is no tweet showing up... Any idea why ?

  10. #10
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some people are having problems with Twitter not giving them a PIN.

    If this is you please check that your app has been registered with an "Application Type" of "CLIENT".

  11. #11
    SitePoint Member Amy Jing's Avatar
    Join Date
    Aug 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I cant find the 7 digit pin

  12. #12
    secure webapps for all Aleksejs's Avatar
    Join Date
    Apr 2008
    Location
    Riga, Latvia
    Posts
    755
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FYI:
    Compromising Twitter's OAuth security system
    Sadly, Twitter's extremely poor implementation of the OAuth standard offers a textbook example of how to do it wrong. This article will explore some of the problems with Twitter's OAuth implementation and some potential pitfalls inherent to the standard.

  13. #13
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for a great tutorial, makes it very simple!

    I did encounter one problem though - you entered your twitteroauth.php URL as follows in a few places:

    require_once('twitteroauth/twitteroauth/twitteroauth.php');

    This caused me a few PHP errors as the URL for me was actually twitteroauth/twitteroauth.php - your URL has one too many "twitteroauth"s!

  14. #14
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry if this is obvious, but I'm confused about the consumer_key and consumer_secret.

    We have a twitter app that's run by cron every 15 minutes. We use it to post updates to twitter accounts if something has changed on a site. So there are 6 sites and 6 twitter accounts. our app previously had a config file that had the account login information for all of the accounts in it, and it used a simple twitter lib to login and post tweets if there was new content on the web sites.

    My question is - do I need to register an app and generate separate consumer_key and consumer_secret tokens for each of the 6 twitter accounts, or is the registration with twitter something that's tied to our app? If the latter, how do you specify the account to which you want to post?

    Just confused about the flow here, when the application is running with no public interface.

    Thanks!

  15. #15
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything went great till I tried using the test tweet script for "Hello World" when I go to the php via the web I just get "Connected as @" and no tweet is posted I'm signed in on Twitter and the App is under my connections.

    Edit:
    I have just noticed both of my access_token files seem to contain nothing so I guess there is the problem.

  16. #16
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for this tutorial - I was able to start tweeting in about 30 minutes by following the instructions.

    One point wasn't clear to me: in Example 3, it wasn't obvious that I'd need to add my consumer_key and consumer_secret in the new TwitterOAuth. You might want to add instructions there to "be sure to drop in your consumer key and secret"...

    Thanks again!

  17. #17
    Team ********* Louis Simoneau's Avatar
    Join Date
    Sep 2009
    Location
    Melbourne, Australia
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @friolator: you would need to generate separate tokens for each account, unfortunately

  18. #18
    Non-Member
    Join Date
    Aug 2010
    Location
    Usa
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi all I wanna know that is twitter give do follow links.....i mean when we put link in the twitter is it no follow or do follow......

  19. #19
    SitePoint Zealot
    Join Date
    Jul 2010
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nofollow

  20. #20
    SitePoint Member chopperfoo's Avatar
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I cant find

  21. #21
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where do we find '$credentials = $oauth->get("account/verify_credentials");' in the excerpt?

    I get response of 'Connected as @'

  22. #22
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can this api be used for checking and replacing twitter usernames on existing account?

  23. #23
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey there -

    I am noticing the authorize URL is not correct since the oauth_token parameter is empty. I get an error when trying to navigate to this link.

    ====

    Woah there!

    This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again it was probably an honest mistake.
    ====

    Can anybody tell me why the request_token and request_token_secret files are empty?

  24. #24
    Team ********* Louis Simoneau's Avatar
    Join Date
    Sep 2009
    Location
    Melbourne, Australia
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @sgtquezada: have you put your consumer key and secret in the script?

  25. #25
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I did. I am just noticing the files are being generated but with no content inside.

    I ended visiting the twitter developer site and it actually provides you with your oauth_token and oauth_token_secret to use in your code.

    I was able to save these in my script. It's showing up as an authorized app on my twitter account now. However, whenever I am trying to send a status update, the tweets are not showing up. I am not seeing any errors... any ideas on why that is happening?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •