如何使用C#创建Facebook登录按钮 [英] how to create a facebook login button using C#

查看:91
本文介绍了如何使用C#创建Facebook登录按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从Facebook开发人员部分获取此html代码.但是当我运行时出现错误:

I am getting this html code from facebook developer section. but when i am running this get an error:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <head>
      <title>My Facebook Registration Page</title>
    </head>
    <body>
      <div id="fb-root"></div>
      <script src="http://connect.facebook.net/en_US/all.js">
      </script>
      <script>
         FB.init({
            appId:'**************', cookie:true,
            status:true, xfbml:true
         });
      </script>

    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=************&amp;xfbml=1"></script><fb:login-button show-faces="false" width="200" max-rows="1"></fb:login-button>
    </body>
</html>




错误是:




the error is:

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.




需要一些帮助来摆脱这个问题.在此先谢谢您.




need some help to get out from this problem. Thanks in advance.

推荐答案

尝试检查以下链接.这可能会帮助
http://stackoverflow.com/questions/4691782/facebook-api-error-191 [ ^ ]
http://stackoverflow.com/questions/4262413/facebook-c-sdk-authorization-problem [ ^ ]
http://forum.developers.facebook.net/viewtopic.php?id=82131 [ ^ ]
Try checking the following links. It might help
http://stackoverflow.com/questions/4691782/facebook-api-error-191[^]
http://stackoverflow.com/questions/4262413/facebook-c-sdk-authorization-problem[^]
http://forum.developers.facebook.net/viewtopic.php?id=82131[^]


您是否认为将其发布在Facebook Developers论坛上会更好?毕竟,在那儿使用FAR的Facebook API比在这里更多.
Don''t you think this would be better posted in the Facebook Developers forum? After all, the Facebook API is used FAR more often over there than it is here.


这篇关于如何使用C#创建Facebook登录按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆