Desktop Application Start with 2.0

Oct 7, 2008 at 2:04 PM
Does anyone have any hints on using the 2.0 version with a desktop application, in particular, simply authenticating? This was simple with 1.7, but doesn't seem intuitive at all with 2.0.

Thanks for any pointers!
Oct 7, 2008 at 3:32 PM
Okay, found an example of how to use the 2.0 RC2 in the source code folder. However, still needs some work as I'm getting SSL/TLS connection errors. The exception is thrown when the call to FacebookService.ConnectToFacebook() is used. Here's the code I'm using:

Public

Class Main

 

 

Private Sub ConnectToFacebook()

 

FacebookService.ApplicationKey =

"<<MY KEY>>"

 

FacebookService.Secret =

"<<MY SECRET>>"

 

FacebookService.ConnectToFacebook()

 

End Sub

 

 

 

Private Sub FriendList1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles FriendList1.Load

 

 

Try

 

ConnectToFacebook()

 

Dim Friends As List(Of Long) = FacebookService.friends.get

 

 

Dim Profiles As List(Of facebook.Schema.user) = FacebookService.users.getInfo(Friends)

 

FriendList1.Friends = Profiles

 

Catch ex As Exception

 

MessageBox.Show(ex.StackTrace, ex.Message)

 

End Try

 

 

End Sub

 

End

Class