Setup of Facebook-C#-SDK in Visual Studio and Facebook -


i'm using http://facebooksdk.codeplex.com/wikipage?title=getting%20started&referringtitle=documentation

can used localhost , visualstudio 2010 websever debug? why stuff hard?

i've downloaded sample , i'm trying csaspnetfacebookapp web project work. keep getting redirected link this:

server error in '/csaspnetfacebookapp' application.

the resource cannot found. description: http 404. resource looking (or 1 of dependencies) have been removed, had name changed, or temporarily unavailable. please review following url , make sure spelled correctly.

requested url: /csaspnetfacebookapp/facebookredirect.axd/csaspnetfacebookapp/default.aspx

thanks enter code hereyour time:

my config looks this:

<httphandlers>    <add verb="*" path="facebookredirect.axd" type="facebook.web.facebookappredirecthttphandler, facebook.web" /> </httphandlers> 

  <add name="facebookredirect" path="facebookredirect.axd" verb="*" type="facebook.web.facebookappredirecthttphandler, facebook.web" />  </handlers> 

the built-in visual studio web server (cassini) doesn't work webforms apps. check out discussion @ http://facebooksdk.codeplex.com/thread/view.aspx?threadid=237454

there 3 ways around problem:

  1. use local iis server debugging. work under iis7 must remove entire httphandlers section web.config
  2. modify sdk's source code not rely on facebookredirect.axd redirection (that's did). hack facebook.web.canvasurlbuilder.buildauthreturnurl build final url redirection. solution may break other stuff, since i'm not sure hell rationale using facebookredirect.axd , not simpler.
  3. check out other solutions proposed in above forum thread.

good luck.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -