This project has moved and is read-only. For the latest updates, please go here.

Cannot access methods?

Jan 16, 2013 at 6:27 PM

HI Joe,

Hopefully I'm not overlooking something simple, but TwitterContext seems to have no access to methods which post, such as CreateFriendship() or UpdateStatus(). I can, however, query for information, such as Friendship status:

Public Shared Function HasFriendship(ByVal userA As String, ByVal userB As String) As Boolean
        Dim auth As ltt.WebAuthorizer = New ltt.WebAuthorizer()
        auth.Credentials = New ltt.SessionStateCredentials()
        Dim twitterCtx As ltt.TwitterContext = New ltt.TwitterContext(auth)
        Dim friendship = (From [friend] In twitterCtx.Friendship
                          Where ([friend].Type = ltt.FriendshipType.Show AndAlso [friend].SourceScreenName = userA AndAlso [friend].TargetScreenName = userB)
                          Select [friend]).First()

        Return friendship.SourceRelationship.Following
End Function

But twitterCtx doesn't recognize the previously mentioned methods. Any thoughts would be much appreciated.



Jan 17, 2013 at 12:14 AM


Are you able to run the VB samples from the downloadable source code?