コード例 #1
0
        public void SendFacebookAppNotification(long toFacebookId, string message, string data, string appAccessToken)
        {
            string appRequestUrl = string.Format(APP_REQUEST_URL_PATTERN, toFacebookId, message, data, appAccessToken);

            var mqBll = new MQBLL();

            mqBll.EnqueueMessage(GOKAPARA_REQUEST_QUEUE, "FacebookAppNotification", new MQMessageInfo()
            {
                Url = appRequestUrl,
                ParseDedication = "None"
            });
        }
コード例 #2
0
        public void PostOnWall(long toFacebookId, string message, string pictureUrl, string linkUrl, string linkName, string caption, string userAccessToken)
        {
            string appRequestUrl = string.Format(APP_WALL_POST, toFacebookId, userAccessToken, message, pictureUrl, linkUrl, linkName, caption);

            var mqBll = new MQBLL();

            mqBll.EnqueueMessage(GOKAPARA_REQUEST_QUEUE, "FacebookAppWallPost", new MQMessageInfo()
            {
                Url = appRequestUrl,
                ParseDedication = "None",
                HttpMethodType = "POST",
                Parameters = new List<string>()
                {
                    "1",
                    "1"
                }
            });
        }