vs2008 c#:Facebook非常简单的初学者应用程序
我只是尝试了下一页的说明,让非常基本的应用程序工作,但它不工作。有人试过这个吗 在下一行vs2008 c#:Facebook非常简单的初学者应用程序,c#,facebook,C#,Facebook,我只是尝试了下一页的说明,让非常基本的应用程序工作,但它不工作。有人试过这个吗 在下一行 friendList1.Friends = facebookService1.Friends.GetUserObjects(); 我得到以下错误: Facebook.Utility.FacebookException was unhandled Message="Incorrect signature" Source="Facebook" ErrorCode=104 StackTrace
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能工作吗?我是在浪费时间吗?你看到这个了吗 Facebook开发者维基
它假设您只了解Facebook和C#的基本知识,并考虑针对您遇到的问题发布另一个问题,以及错误消息的确切措辞。也许这很简单。为了帮助你:你能提供一些关于你所做的事情的信息(通过扩展/编辑问题),包括错误消息吗?API有什么问题?你的问题很模糊。需要更多信息的副本。。。到底是什么不起作用?什么错误?我刚刚添加了以下4行,链接中的教程可以正常工作。字符串apikey=“xxxxxxxxxxxxxx”;facebookService1.ApplicationKey=apikey;facebookService1.ConnectToFacebook();friendList1.Friends=FaceBookService 1.Friends.GetUserObjects();