Posts

Showing posts from November, 2013

CAML Query

Image
CAML Query tutorial for SharePoint In this article, we will understand the basics of CAML query in SharePoint. What is CAML?   Ø     CAML -   Collaborative Application Markup Language   Ø     XML - Extensible Markup Language based query language   Ø     Used to perform a   query   operation against   SharePoint Lists How SharePoint List Items are retrieved? SharePoint List data can be retrieved in any one of the following ways: 1.   Using the SharePoint object model   – used when code runs on the server         ( Example:   Developing a web part or an application page) 2.   Using the SharePoint Lists web service   – used when your code doesn’t run on the server where the SharePoint is installed ( Example : Developing a windows application) 3.   Using Power shell   –used mostly by the ADMIN of the SharePoint when they quickly want to retrieve some information from the SharePoint site How does CAML query looks like? As I already mentioned, it is XML based query

Post status,image and video to facebok userwall and facebook page

            string app_id = "";             string app_secret = "";             string scope = "publish_stream,manage_pages";             if (Request["code"] == null)             {                 Response.Redirect(string.Format(                     "https://graph.facebook.com/oauth/authorize?client_id={0}&redirect_uri={1}&scope={2}",                     app_id, Request.Url.AbsoluteUri, scope));             }             else             {                 Dictionary<string, string> tokens = new Dictionary<string, string>();                 string url = string.Format("https://graph.facebook.com/oauth/access_token?client_id={0}&redirect_uri={1}&scope={2}&code={3}&client_secret={4}",                     app_id, Request.Url.AbsoluteUri, scope, Request["code"].ToString(), app_secret);                 HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;