public string PostLink(string ownerId, string message, FacebookLink link)
        {
            requireAuthorization();
            NameValueCollection parameters = new NameValueCollection();

            parameters.Add("link", link.Link);
            parameters.Add("name", link.Name);
            parameters.Add("caption", link.Caption);
            parameters.Add("description", link.Description);
            parameters.Add("message", message);
            return(this.Publish(ownerId, "feed", parameters));
        }
        public string Post(string pageId, string message, FacebookLink link)
        {
            requireAuthorization();
            string pageAccessToken         = GetPageAccessToken(pageId);
            NameValueCollection parameters = new NameValueCollection();

            parameters.Add("link", link.Link);
            parameters.Add("name", link.Name);
            parameters.Add("caption", link.Caption);
            parameters.Add("description", link.Description);
            parameters.Add("message", message);
            parameters.Add("access_token", pageAccessToken);
            return(this.Publish(pageId, "feed", parameters));
        }
		public string PostLink(string ownerId, string message, FacebookLink link)
		{
			requireAuthorization();
			NameValueCollection parameters = new NameValueCollection();
			parameters.Add("link"       , link.Link       );
			parameters.Add("name"       , link.Name       );
			parameters.Add("caption"    , link.Caption    );
			parameters.Add("description", link.Description);
			parameters.Add("message"    , message         );
			return this.Publish(ownerId, "feed", parameters);
		}
		public string PostLink(string message, FacebookLink link)
		{
			return PostLink("me", message, link);
		}
Beispiel #5
0
 public FacebookPage goToFacebookPage()
 {
     FacebookLink.Click();
     return(new FacebookPage(Driver));
 }
 public string PostLink(string message, FacebookLink link)
 {
     return(PostLink("me", message, link));
 }