Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andre 6 posts 26 karma points
    Apr 21, 2011 @ 11:31
    Andre
    0

    Problem loggin into Twitter API

    Hi,

    I am trying to use this package to automatically publish my blog posts into my Twitter account.

    My tweet.config appears to be in the correct folder: /umbraco/plugins/DocumentPublishTweet/tweet.config with the right configuration, as follows:

    <config>
        <accounts>
            <account key="mainaccount">
                <login>myUsername</login>
                <password>myPassword</password>
            </account>
        </accounts>
        <document_types>
            <document_type alias="BlogPost">
                <title_property_alias>PostTitle</title_property_alias>
                <tweets>
                    <tweet domain_filter="mydomain.com">
                        <account>mainaccount</account>
                        <message>New post on our Blog! - '#title#' #url#</message>
                    </tweet>
                </tweets>
            </document_type>
        </document_types>
    </config>

    The DLL file is also in the bin folder. My document type has the "tweeted" property as well.

    If I copy and paste the above login and username (obviously censored here) from this tweet.config to their web interface I am able to login successfully. However, after publishing the node my umbracoLog table logs the following:

    FMDOCTWEET:: The remote server returned an error: (401) Unauthorized.
    FMDOCTWEET:: Cannot tweet

    So it looks like something is wrong while authentication on the API. I am sure my login and password work when loggin in via web.

    Any ideas or suggestions, please?

    Thanks in advance,

    Andre

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 21, 2011 @ 17:50
    Jan Skovgaard
    0

    Hi Andre

    And you're absolutely positive you have not overseen a typo in your credentials?

    /Jan

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Apr 22, 2011 @ 12:51
    Darren Ferguson
    0

    Hi - Twitter no longer supports user/pass authentication using their API so this package is redundant.

    Thanks.

  • Andre 6 posts 26 karma points
    May 12, 2011 @ 13:20
    Andre
    0

    Hi Jan, Darren

    Thanks for your replies. The credentials were right, but the API wouldn't log me it at all. I see now that Darren is right, basic authentication via Twitter API has been deprecated on 16th August 2010. Looks like we've got to use OAuth from now on.

    Thanks,

    Andre

Please Sign in or register to post replies

Write your reply to:

Draft