Lines Matching refs:request
159 * @param FacebookRequest $request
163 public function prepareRequestMessage(FacebookRequest $request) argument
165 $postToVideoUrl = $request->containsVideoUploads();
166 $url = $this->getBaseGraphUrl($postToVideoUrl) . $request->getUrl();
169 if ($request->containsFileUploads()) {
170 $requestBody = $request->getMultipartBody();
171 $request->setHeaders([
175 $requestBody = $request->getUrlEncodedBody();
176 $request->setHeaders([
183 $request->getMethod(),
184 $request->getHeaders(),
192 * @param FacebookRequest $request
198 public function sendRequest(FacebookRequest $request) argument
200 if (get_class($request) === 'Facebook\FacebookRequest') {
201 $request->validateAccessToken();
204 list($url, $method, $headers, $body) = $this->prepareRequestMessage($request);
208 if ($request->containsFileUploads()) {
210 } elseif ($request->containsVideoUploads()) {
221 $request,
237 * @param FacebookBatchRequest $request
243 public function sendBatchRequest(FacebookBatchRequest $request) argument
245 $request->prepareRequestsForBatch();
246 $facebookResponse = $this->sendRequest($request);
248 return new FacebookBatchResponse($request, $facebookResponse);