Example #1
0
        public Tag[] GetTags()
        {
            StringBuilder pids = new StringBuilder();

            foreach (Photo p in GetPhotos())
            {
                if (pids.Length > 0)
                {
                    pids.Append(",");
                }

                pids.Append(p.PId);
            }

            PhotoTagsResponse rsp = Session.Util.GetResponse <PhotoTagsResponse> ("facebook.photos.getTags",
                                                                                  FacebookParam.Create("pids", pids),
                                                                                  FacebookParam.Create("session_key", Session.SessionKey),
                                                                                  FacebookParam.Create("call_id", System.DateTime.Now.Ticks));

            foreach (Tag t in rsp.Tags)
            {
                t.Session = Session;
            }

            return(rsp.Tags);
        }
Example #2
0
        public Tag[] GetTags()
        {
            PhotoTagsResponse rsp = Session.Util.GetResponse <PhotoTagsResponse> ("facebook.photos.getTags",
                                                                                  FacebookParam.Create("pids", PId),
                                                                                  FacebookParam.Create("session_key", Session.SessionKey),
                                                                                  FacebookParam.Create("call_id", System.DateTime.Now.Ticks));

            foreach (Tag t in rsp.Tags)
            {
                t.Session = Session;
            }

            return(rsp.Tags);
        }