Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Code does nothing :(

    Hello,

    I'm trying to display the last tweet from my twitter account on my website, I've tried to follow a guide but haven't been successful

    Here's my code:

    <div id="twitter_update_list">
    </div>
    <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
    <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/Bar_Equipment.json?callback=twitterCallback2&count=1"></script>

    Here's the guide I've tried to follow: http://jajee.net/howto/web-designing...e-twitter-api/

    Any help guys and girls?

    Thank you!

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Error 404 - Not Found

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DanInMa View Post
    Error 404 - Not Found
    Oh ok, was fine earlier

    Here's another with basically the same info: http://prajeeshkk.blogspot.co.uk/200...-tweet-in.html

  • #4
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    are you sure your twitter username is Bar_Equipment ? I did a search on twitter for that username and could nto find one

  • #5
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DanInMa View Post
    are you sure your twitter username is Bar_Equipment ? I did a search on twitter for that username and could nto find one
    Yep pretty sure, it's what I use to log in with and the url is https://twitter.com/Bar_Equipment

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    ok, well the script is returnign an error :

    twittercallback2({"errors":[{"message":"Sorry, that page does not exist","code":34}]});

    aha!


    http://www.tom-elliott.net/javascrip...ed-json-error/


    looks liek ti should be

    Code:
    http://api.twitter.com/1/statuses/user_timeline/Bar_Equipment.json
    Last edited by DanInMa; 03-27-2013 at 04:09 PM.

  • Users who have thanked DanInMa for this post:

    Rustyy117 (03-27-2013)

  • #7
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DanInMa View Post
    ok, well the script is returnign an error :

    twittercallback2({"errors":[{"message":"Sorry, that page does not exist","code":34}]});

    aha!


    http://www.tom-elliott.net/javascrip...ed-json-error/


    looks liek ti should be

    Code:
    http://api.twitter.com/1/statuses/user_timeline/Bar_Equipment.json
    Oh wow....
    No wonder it wasn't working

    It's now working fine with the code you posted so thanks very much!


  •  

    Posting Permissions

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