简体   繁体   English

登录Facebook SDK C#

[英]Login Facebook SDK C#

after download and install facebook c# sdk, I cant find function WebFacebook.Navigate.. 下载并安装Facebook C#SDK之后,我找不到功能WebFacebook.Navigate。

why this happen to me? 为什么这发生在我身上? cz this I cannot continue my project. cz这无法继续我的项目。 any idea? 任何想法? Thanks 谢谢

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Facebook;

namespace FaceBook
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string OAuthURL = @" https://www.facebook.com/dialog/oauth?client_id=1615871262024203&redirect_uri= https://www.facebook.com/connect/login_success.html&response_type=token ";

            WebFacebook.Navigate(OAuthURL);                 
        }
    }
}

Guessing you're (sort of) following the code here (or similar): http://www.emoticode.net/c-sharp/facebook-oauth-getting-basic-user-infos.html 猜测您正在(或类似)以下(或类似的)代码: http : //www.emoticode.net/c-sharp/facebook-oauth-getting-basic-user-infos.html

But you apparently skipped the step where you need to put a WebBrowser control on your form/window and name it webfacebook which would allow that Navigate call to actually mean something... 但是您显然跳过了需要在表单/窗口上放置WebBrowser控件并将其命名为webfacebook ,这将使Navigate调用实际上意味着某些内容...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM