コード例 #1
0
 public FacebookPost(IDictionary<string, object> posts, FacebookUserSession _fbSession)
 {
     this.InitializeComponent();
     this.posts = posts;
     this._fbSession = _fbSession;
     this._fb = _fbSession._fb;
     LoadData();
 }
コード例 #2
0
ファイル: LoginSolutions.cs プロジェクト: tylorhl/FeedMaster
        public FacebookUserSession fbLogin(String accessToken)
        {
            //Try to extend the key
            ExtendAccessSolution extendAccess = new ExtendAccessSolution();
            String extendedToken = extendAccess.ExtendFacebook(accessToken);

            if (extendedToken == null)
                accessToken = extendedToken;

            FacebookClient _fb = new FacebookClient(accessToken);

            dbInfo(accessToken, "Facebook");

            FacebookUserSession userSession = new FacebookUserSession(_fb);
            /*dynamic parameters = new ExpandoObject();
            parameters.access_token = accessToken;
            parameters.fields = "id";

            dynamic result = _fb.GetTaskAsync("me", parameters);

            App.FacebookId = result.id;*/

            return userSession;
        }