コード例 #1
0
 private string GetOGMetaTags()
 {
     FacebookBizProcess fbBizProc = new FacebookBizProcess();
     StringBuilder sbOGTags = new StringBuilder();
     sbOGTags.Append("<meta property=\"fb:app_id\" content=\"" + Convert.ToString(Request["app_id"]) + "\" />" + Environment.NewLine);
     sbOGTags.Append("<meta property=\"og:type\" content=\"website\" />" + Environment.NewLine);
     sbOGTags.Append("<meta property=\"og:title\" content=\"Welocme to Sonetreach\" />" + Environment.NewLine);
     sbOGTags.Append("<meta property=\"og:image\" content=\"https://www.sonetreach.com/images/sonet_watermark.png\" />" + Environment.NewLine);
     sbOGTags.Append("<meta property=\"og:description\" content=\"Social Media Marketing Software\" />" + Environment.NewLine);
     sbOGTags.Append("<meta property=\"og:url\" content=\"" + fbBizProc.GetAppPath(Convert.ToString(Request["app_id"])) + "\">" + Environment.NewLine);
     sbOGTags.Append("<meta property=\"fb:admins\" content=\"\" />" + Environment.NewLine);
     sbOGTags.Append(" <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js\"></script>" + Environment.NewLine);
     sbOGTags.Append("<script src=\"https://connect.facebook.net/en_US/all.js#appId=" + Convert.ToString(Request["app_id"]) + "&amp;xfbml=1\"></script>" + Environment.NewLine);
     return sbOGTags.ToString();
 }