public frmSingleResult(Response_PostDetail obj)
 {
     InitializeComponent();
     InitEvent();
     dataTMP = obj;
     OnView(obj.id);
 }
Exemple #2
0
        public static Response_PostDetail getPostDetailbyID(string PostID)
        {
            Response_PostDetail obj = new Response_PostDetail();

            //https://graph.facebook.com/1235717999927120_683642118468047?access_token=EAAAAUaZA8jlABAJT8xsqXYJa8FuqbEb1naUc9RneevF4UdBO3M78Ufe4845rbYMJ2FIwoVMFAyj7LP1hl6ooDNrOOpOYetX90IrsYDeSCbJrpSKNKT5vpPj22jxQ2QVWZA8zR3xmNooEZAuzWD01i5RQKbwWypXKxRLrFUqrgZDZD
            try
            {
                FacebookClient fc      = new FacebookClient(Token);
                var            request = "https://graph.facebook.com/" + PostID + "?access_token=" + Token;
                var            Result  = fc.Get(request).ToString();
                obj = JsonConvert.DeserializeObject <Response_PostDetail>(Result.ToString());
            }
            catch (Exception ex)
            {
                Error = ex.Message;
            }
            return(obj);
        }