2009-12-31 7 views
0

Je viens d'essayer des instructions sur la page suivante pour obtenir une application très basique au travail et son ne fonctionne pas. Est-ce que quelqu'un a essayé cela?vs2008 C#: Facebook très simple application débutant

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

à la ligne suivante

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

Je reçois l'erreur suivante:

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: 

fonctionne l'API Microsoft Facebook à tous? Est-ce que je perds mon temps?

+0

Afin de vous aider: pouvez-vous fournir des informations (en prolongeant/modifiant la question) sur ce que vous avez fait, y compris les messages d'erreur? –

+2

Quel est le problème que vous rencontrez avec l'API? Votre question est vague. – mgbowen

+0

Duplicata de http://stackoverflow.com/questions/1986408/visual-studio-2008-c-facebook-very-simple-beginner-application –

Répondre

1

Avez-vous déjà vu?

Facebook Developer Wiki
http://wiki.developers.facebook.com/index.php/User:C_Sharp

Il suppose que les connaissances de base de Facebook et C#

+0

Oui. Leurs échantillons ne fonctionnent pas. –

+0

Pensez à poster une autre question avec le problème que vous rencontrez et le libellé exact du message d'erreur. Peut-être que c'est quelque chose de simple. –