开发者

Developing ASP.NET Facebook App Locally

I've searched around and found a lot of advice saying to modify the hosts file as such:

127.0.0.1    mydomainname.com

I've done that, but my actual site at mydomainna开发者_JAVA技巧me.com is still being used. Any other troubleshooting steps I could take? Any other suggestions?


Restart your browser, try ipconfig /flushdns (I'm a bit hazy on Windows DNS caching so that may or may not help here) or restart your computer. Unless you've done something really weird, the hosts file should have priority, so something must be caching the DNS result.


simply setup your canvas address as localhost. Unless you're using FBML, it works. See http://fbgraph.computerbeacon.net/tutorial/section1/createnewapp.aspx for an example.


Just make your redirect_uri your localhost address like:

https://graph.facebook.com/oauth/authorize?client_id={consumerKey}&redirect_uri=http://localhost:4403/Handshake

I have mine set up in visual studio to switch between localhost and live return_url's depending on whether debug or release is selected

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜