ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/facebook/trunk/facebookapi_php5_restlib.php
(Generate patch)

Comparing facebook/trunk/facebookapi_php5_restlib.php (file contents):
Revision 981 by douglas, 2008-01-16T16:47:47-08:00 vs.
Revision 991 by douglas, 2008-01-20T22:16:32-08:00

# Line 180 | Line 180 | function toggleDisplay(id, type) {
180              'image_4_link' => $image_4_link));
181    }
182  
183 <  public function feed_publishTemplatizedAction($actor_id, $title_template, $title_data,
183 >  public function feed_publishTemplatizedAction($title_template, $title_data,
184                                                  $body_template, $body_data, $body_general,
185                                                  $image_1=null, $image_1_link=null,
186                                                  $image_2=null, $image_2_link=null,
187                                                  $image_3=null, $image_3_link=null,
188                                                  $image_4=null, $image_4_link=null,
189 <                                                $target_ids='') {
189 >                                                $target_ids='', $page_actor_id=null) {
190      return $this->call_method('facebook.feed.publishTemplatizedAction',
191 <      array('actor_id' => $actor_id,
192 <            'title_template' => $title_template,
191 >      array('title_template' => $title_template,
192              'title_data' => is_array($title_data) ? json_encode($title_data) : $title_data,
193              'body_template' => $body_template,
194              'body_data' => is_array($body_data) ? json_encode($body_data) : $body_data,
# Line 202 | Line 201 | function toggleDisplay(id, type) {
201              'image_3_link' => $image_3_link,
202              'image_4' => $image_4,
203              'image_4_link' => $image_4_link,
204 <            'target_ids' => $target_ids));
204 >            'target_ids' => $target_ids,
205 >            'page_actor_id' => $page_actor_id));
206    }
207  
208    /**
# Line 267 | Line 267 | function toggleDisplay(id, type) {
267    }
268  
269    /**
270 +   * Returns cookies according to the filters specified.
271 +   * @param int $uid Required: User for which the cookies are needed.
272 +   * @param string $name Optional:
273 +   *   A null parameter will get all cookies for the user.
274 +   * @return array of cookies
275 +   */
276 +  public function data_getCookies($uid, $name) {
277 +    return $this->call_method('facebook.data.getCookies',
278 +        array(
279 +        'uid' => $uid,
280 +        'name' => $name));
281 +  }
282 +
283 +  /**
284 +   * Sets cookies according to the params specified.
285 +   * @param int $uid Required: User for which the cookies are needed.
286 +   * @param string $name Required: name of the cookie
287 +   * @param string $value Optional if expires specified and is in the past
288 +   * @param int$expires Optional
289 +   * @param string $path Optional
290 +   *
291 +   * @return bool
292 +   */
293 +  public function data_setCookie($uid, $name, $value, $expires, $path) {
294 +    return $this->call_method('facebook.data.setCookie',
295 +        array(
296 +        'uid' => $uid,
297 +        'name' => $name,
298 +        'value' => $value,
299 +        'expires' => $expires,
300 +        'path' => $path));
301 +  }
302 +
303 +  /**
304     * Returns the outstanding notifications for the session user.
305     * @return assoc array of
306     *  notification count objects for 'messages', 'pokes' and 'shares',

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines