facebook v2.2 login C#

我怕爱的太早我们不能终老 提交于 2019-12-04 02:32:33

问题


I would like to code for a FacebookLoginDialog.cs programmed in Microsoft Visual Studio 2010 Ultimate in C#. As you may know, Facebook has upgraded its API to v2.2 and most of the information I find online is v2.0 which I am not sure if it is the same.

I tried looking at Facebook v2.0 Login with C# facebook sdk but I could not access the link provided in it and it's v2.0.

And everytime I run my code, I will face this problem when I get to facebook login.

The code is given by my friend but she did it one or two years back before the facebook api upgraded recently. There is no URL (or uri) in my friend's coding. but it works for her previously when she started coding.

I have no access to the app ID site that was created. I have created a new app ID but to no avail.

Please help! I am really in need of help.


回答1:


Please check the site Url you have mentioned at the Facebook developer section.

I think problem may arise only for two reason

1> Incorrect Url at facebook developer site

2> navigateUrl parameter should be same when you send code for access token.




回答2:


I've found how to solve this problem. The problem doesn't lies on the coding but the facebook developer site.

https://www.facebook.com/help/community/question/?id=542958419109491

Just enable the "Embedded browser OAuth Login" button and it will work.



来源:https://stackoverflow.com/questions/28473199/facebook-v2-2-login-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!