2009-12-31 98 views
0

我只是試圖在下面的頁面獲取非常基本的應用程序的工作和它的不工作。有沒有人試過這個?vs2008 c#:Facebook非常簡單的初學者應用程序

http://msdn.microsoft.com/en-us/windows/dd277870.aspx

在下面一行

friendList1.Friends = facebookService1.Friends.GetUserObjects(); 

我得到以下錯誤:

Facebook.Utility.FacebookException was unhandled 
    Message="Incorrect signature" 
    Source="Facebook" 
    ErrorCode=104 
    StackTrace: 
     at Facebook.Utility.Utilities.ParseException(String response, Boolean JSONFormat) 
     at Facebook.Rest.RestBase.processResponse(WebResponse webResponse) 
     at Facebook.Rest.RestBase.SendRequestSynchronous(IDictionary`2 parameterDictionary, Boolean useSession) 
     at Facebook.Rest.RestBase.SendRequest[T](IDictionary`2 parameterDictionary, Boolean useSession) 
     at Facebook.Rest.Friends.GetUserObjects(Int64 uid, Int64 flid, Boolean isAsync, GetInfoCallback callback, Object state) 
     at Facebook.Rest.Friends.GetUserObjects(Int64 uid, Int64 flid) 
     at Facebook.Rest.Friends.GetUserObjects() 
     at WindowsFormsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\ZULFIQAR SYED\Local Settings\Application Data\Temporary Projects\WindowsFormsApplication1\Form1.cs:line 33 
     at System.Windows.Forms.Form.OnLoad(EventArgs e) 
     at System.Windows.Forms.Form.OnCreateControl() 
     at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
     at System.Windows.Forms.Control.CreateControl() 
     at System.Windows.Forms.Control.WmShowWindow(Message& m) 
     at System.Windows.Forms.Control.WndProc(Message& m) 
     at System.Windows.Forms.ScrollableControl.WndProc(Message& m) 
     at System.Windows.Forms.ContainerControl.WndProc(Message& m) 
     at System.Windows.Forms.Form.WmShowWindow(Message& m) 
     at System.Windows.Forms.Form.WndProc(Message& m) 
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
     at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) 
     at System.Windows.Forms.Control.SetVisibleCore(Boolean value) 
     at System.Windows.Forms.Form.SetVisibleCore(Boolean value) 
     at System.Windows.Forms.Control.set_Visible(Boolean value) 
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 
     at System.Windows.Forms.Application.Run(Form mainForm) 
     at WindowsFormsApplication1.Program.Main() in C:\Documents and Settings\ZULFIQAR SYED\Local Settings\Application Data\Temporary Projects\WindowsFormsApplication1\Program.cs:line 18 
     at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) 
     at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
     at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
     at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
     at System.Threading.ThreadHelper.ThreadStart() 
    InnerException: 

微軟是否實API的工作呢?我在浪費時間嗎?

+0

爲了幫助你:你能否提供一些關於你所做的事情的信息(通過擴展/編輯問題),包括錯誤消息? – 2009-12-31 18:18:51

+2

你在使用API​​時遇到了什麼問題?你的問題含糊不清。 – mgbowen 2009-12-31 19:46:22

+0

重複的http://stackoverflow.com/questions/1986408/visual-studio-2008-c-facebook-very-simple-beginner-application – 2009-12-31 19:47:27

回答

1

你見過這個了嗎?

Facebook開發的Wiki
http://wiki.developers.facebook.com/index.php/User:C_Sharp

它假定Facebook上的,只有基礎知識C#

+0

是。他們的樣品不起作用。 – 2009-12-31 18:00:21

+0

考慮發佈有關您遇到的問題的另一個問題,以及錯誤消息的確切用詞。也許這很簡單。 – 2009-12-31 18:11:25