Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Twitter module - now available to download

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 5665 Views
  • michaelhmm
    Avatar
    Community Member
    23 Posts

    Re: Twitter module - now available to download Link to this post

    Twitter Module not working in 2.4:

    in TwitterAPI.php replace the lines:

    $conn = $twitter->connect('');
             
             $xml = @simplexml_load_string($conn);

    With the following:

    $response = $twitter->request('');
             
             $xml = $response->simplexml();

    Explanation: the connect method is deprecated and will cause an error message, so the request method must be used instead, this returns a response object which already has a simple xml method.

  • Garrett
    Avatar
    Community Member
    245 Posts

    Re: Twitter module - now available to download Link to this post

    Hey,

    I made the code changes you indicated. Do you have this working in SS 2.4.*? My Twitter page shows nothing. 0's for everything. Any idea why?

    Thanks,
    Garrett

  • michaelhmm
    Avatar
    Community Member
    23 Posts

    Re: Twitter module - now available to download Link to this post

    Hi Garrett

    I think this will be because Nivanka (originator and maintainer of the module) hasn't had time to change the module authentication to twitter's new OAuth requirement - see Hamish's post earlier in this thread.

    Unfortunately he seems to have become so busy that he hasn't had time to do this.

    Michael

  • lerni
    Avatar
    Community Member
    80 Posts

    Re: Twitter module - now available to download Link to this post

    I recently used a asynchronous jQuery based solution for this. It fits perfectly for me.
    http://tweet.seaofclouds.com/

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Twitter module - now available to download Link to this post

    Good!

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Twitter module - now available to download Link to this post

    This module don't work with SS 2.4.5. I've error500 in backed when I made new Twitter Page.

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Twitter module - now available to download Link to this post

    I don't find this in twitterAPI.php

    $response = $twitter->request('');

    $xml = $response->simplexml();

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Twitter module - now available to download Link to this post

    I solved syntax problems, but don't work because Twitter don't support BasicAuth from 2010.
    How solve?
    Bye

    5665 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.