WordPress.org

Ready to get started?Download WordPress

Forums

WP-Status.net
Twitter Posts not working (2 posts)

  1. jetlib
    Member
    Posted 3 years ago #

    Your plugin works for status.net sites, but for twitter's oauth it isn't working for me, even though I followed your instructions. This new OAuth stuff is such a pain.

  2. jetlib
    Member
    Posted 3 years ago #

    So, I'm debugging your script, and the quality of your code is really disappointing.

    What kind of testing do you do before you release? Why do you use undefined constants all over the place which generate notices?

    You are missing some array specifiers in your oauth branching..

    if ($options[statusauthtype] == "oauth")

    Should be..

    if ($options[statusauthtype][$i] == "oauth")

    --

    So digging deeper, for the oauth code around line ~670-690, when I dump the $OauthInfo param, it

    object(EpiTwitterJson)#786 (1) {
      ["resp":"EpiTwitterJson":private]=>
      object(EpiCurlManager)#4 (2) {
        ["key":"EpiCurlManager":private]=>
        string(16) "Resource id #127"
        ["epiCurl":"EpiCurlManager":private]=>
        object(EpiCurl)#783 (6) {
          ["mc":"EpiCurl":private]=>
          resource(125) of type (curl_multi)
          ["msgs":"EpiCurl":private]=>
          NULL
          ["running":"EpiCurl":private]=>
          NULL
          ["requests":"EpiCurl":private]=>
          array(2) {
            ["Resource id #126"]=>
            resource(126) of type (curl)
            ["Resource id #127"]=>
            resource(127) of type (curl)
          }
          ["responses":"EpiCurl":private]=>
          array(1) {
            ["Resource id #126"]=>
            array(5) {
              ["data"]=>
    <strong>          string(74) "{"errors":[{"code":53,"message":"Basic authentication is not supported"}]}"</strong>
              ["code"]=>
              int(401)
              ["time"]=>
              float(0.24596)
              ["length"]=>
              float(74)
              ["type"]=>
              string(31) "application/json; charset=utf-8"
            }
          }
          ["properties":"EpiCurl":private]=>
          array(4) {
            ["code"]=>
            int(2097154)
            ["time"]=>
            int(3145731)
            ["length"]=>
            int(3145743)
            ["type"]=>
            int(1048594)
          }
        }
      }
    }

    It gives "errors":[{"code":53,"message":"Basic authentication is not supported"

    Wtf man..is it not even doing oauth?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic