Return-path: <noreply@facebookmail.com>
Envelope-to: fb@vin-fm.com
Delivery-date: Thu, 04 Apr 2013 08:34:57 +0700
Received: from outcampmail005.snc4.facebook.com ([66.220.144.164]:33710 helo=mx-out.facebook.com)
	by server01-iix.secureserver.web.id with esmtp (Exim 4.80)
	(envelope-from <noreply@facebookmail.com>)
	id 1UNZ4q-0000NR-OC
	for fb@vin-fm.com; Thu, 04 Apr 2013 08:34:57 +0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=facebookmail.com;
	s=s1024-2011-q2; t=1365038920;
	bh=frnTzDtKYOA5sWeVSsMLkTbQI4WwZ/hh+MgO7BGxazY=;
	h=Date:To:From:Subject:MIME-Version:Content-Type;
	b=kzMN3FhhEi1R2UO9CgjcgvqA4eOVPDAny0u0z5hZQ/kTeSzsNJSfCfU8mOFw2i6kW
	 Ta7U7OhEqHs199QHKKinY4/+b68WjnWYf52UOxF3Z9GM2G4yrwBG0MMYmIJtezZFaW
	 aAFhBMeqxifdARKNzoIb/VGivqGrMfV4JRqyUhbg=
Received: from [10.66.204.49] ([10.66.204.49:48554])
	by smout022.snc6.facebook.com (envelope-from <noreply@facebookmail.com>)
	(ecelerity 3.5.1.37927 r(/root/Momo-dev:tip)) with ECSTREAM
	id D2/2B-32706-847DC515; Wed, 03 Apr 2013 18:28:40 -0700
X-Facebook: from zuckmail ([MTI3LjAuMC4x]) 
	by async.facebook.com with HTTP (ZuckMail);
Date: Wed, 3 Apr 2013 18:28:40 -0700
To: fb@vin-fm.com
From: "Facebook" <noreply@facebookmail.com>
Subject: Developer Blog: New APIs for Comment Replies
Message-ID: <eb73243120b9db15202f5a94e955d561@async.facebook.com>
X-Priority: 3
X-Mailer: ZuckMail [version 1.00]
X-Facebook-Notify: ; mailid=
X-FACEBOOK-PRIORITY: 0
X-Auto-Response-Suppress: All
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="b1_eb73243120b9db15202f5a94e955d561"


--b1_eb73243120b9db15202f5a94e955d561
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Halo Vincent,

A new post has been added to the Developer Blog.

New APIs for Comment Replies, Besok, 4 April jam 7:38
Published by Alex Madjar

Last week, we launched comment replies on Facebook pages and profiles with =
more than 10,000 followers.  This allows businesses and celebrities to =
engage with their fans more directly.  Today, we=E2=80=99re updating the =
API so developers can build tools that make it easier for brands to =
monitor and respond to comment replies.



API Updates

Our API now supports different "views" of the comments on posts through =
our updated comments API and FQL comment table.

Top Level Comments

The first view of the comments on a post is called "top level".  The =
comments that are on the post (and are not replies to individual comments) =
are called "top level comments."  Top level comments may be ranked, =
depending on the post and the number of top level comments on that post so =
far.

The top level view of comments corresponds to what a user would see on =
Facebook.  To get the top level view of comments in Graph API:

GET {object_id}/comments?filter=3Dtoplevel

In FQL, you can issue the request:


SELECT id, fromid, time, text, likes=20
FROM comment=20
WHERE object_id=3D{object_id} AND parent_id=3D'0'


Replies

Comments on comments are called "replies."  You get replies by querying =
for the comments on a comment id.

Graph API:

GET {comment_id}/comments

FQL:


SELECT id, fromid, time, text, likes=20
FROM comment=20
WHERE parent_id=3D{comment_id}

Comment Stream

Another view of the comments on a post is the "stream".  The comments =
"stream" gives all comments (top level and replies to comments) together.  =
The "stream" view provides comments in chronological order, so it's easy =
for you to just get what's new.

Graph API:

GET {object_id}/comments?filter=3Dstream

FQL:


SELECT id, fromid, time, text, likes=20
FROM comment=20
WHERE object_id=3D{object_id}=20
ORDER BY time

Getting Started with the APIs

To get started today with the new APIs, opt into the "July 2013 Breaking =
Changes" migration for your app by visiting the Advanced tab of your app =
dashboard.

If you're currently using our existing comments APIs, here are a few =
changes to keep in mind:


'comments' field from 'stream' FQL table is deprecated.  Please use =
the'comment_info' column to fetch the 'can_comment' and 'comment_count' =
fields.
We are removing the fields on the FQL 'comment' table that were used =
exclusively for legacy Comments Plugins -- 'xid', 'reply_xid', 'username' =
and 'comments'.
We are removing the undocumented 'count' field on the 'comments' =
connection in the Graph API.  Please request =
'{id}/comments?summary=3Dtrue' explicitly if you would like the summary =
field which contains the count (now called 'total_count')


Please read the documentation for details on how to use these new features =
and the Roadmap for details on the API changes.

We're excited to continue working with you, our community of developers, =
to improve the quality of the conversations happening on Facebook and =
can't wait to see what you build.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

___________________
This message was intended for fb&#064;vin-fm.com. Anda menerima surel ini =
karena anda telah memilih untuk menerima pembaruan pengembang dari =
Facebook. Ingin mengendalikan pembaruan pengembang mana saja yang anda =
terima? Pergi ke:
http://developers.facebook.com/settings
Facebook, Inc., Attention: Department 415, PO Box 10005, Palo Alto, CA =
94303


--b1_eb73243120b9db15202f5a94e955d561
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"><title>Facebook</title></head><body style=3D"margin: 0; =
padding: 0;" dir=3D"ltr"><table width=3D"98%" border=3D"0" =
cellspacing=3D"0" cellpadding=3D"40"><tr><td bgcolor=3D"#f7f7f7" =
width=3D"100%" style=3D"font-family:'lucida =
grande',tahoma,verdana,arial,sans-serif;"><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" width=3D"620"><tr><td style=3D"background:#=
3b5998;color:#FFFFFF;font-weight:bold;font-family:'lucida =
grande',tahoma,verdana,arial,sans-serif;vertical-align:middle;padding:4px =
8px; font-size: 16px; letter-spacing: -0.03em; text-align: =
left;">facebook</td><td style=3D"background:#3b5998;color:#FFFFFF;font-wei=
ght:bold;font-family:'lucida =
grande',tahoma,verdana,arial,sans-serif;vertical-align:middle;padding:4px =
8px;font-size: 11px; text-align: right;"></td></tr><tr><td colspan=3D"2" =
style=3D"background-color: #FFFFFF; border-bottom: 1px solid #3b5998; =
border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; padding: =
15px;font-family:'lucida grande',tahoma,verdana,arial,sans-serif;" =
valign=3D"top"><table width=3D"100%" cellpadding=3D"0" =
cellspacing=3D"0"><tr><td width=3D"100%" style=3D"font-size:12px;" =
valign=3D"top" align=3D"left"><div style=3D"margin-bottom:15px; =
font-size:12px;font-family:'lucida =
grande',tahoma,verdana,arial,sans-serif;">Halo Vincent,</div><div =
style=3D"margin-bottom:15px;">A new post has been added to the Developer =
Blog.</div><div style=3D"margin-bottom:15px;"><div style=3D"border-bottom: =
1px solid #ccc; line-height:5px;">&nbsp;</div><br /><table><tr><td =
style=3D"vertical-align: top;"><a =
href=3D"http://www.facebook.com/alex.madjar" =
style=3D"color:#3b5998;text-decoration:none;"><img style=3D"border: none; =
padding-top: 4px; 0px none;" alt=3D"Alex Madjar" src=3D"http://profile.ak.=
fbcdn.net/hprofile-ak-prn1/572883_544337805_1996914577_q.jpg" =
/></a></td><td style=3D"vertical-align: top;"><div><h3 =
style=3D"margin-top: 0px; font-size: 14px; "><a href=3D"http://developers.=
facebook.com/blog/post/2013/04/03/new-apis-for-comment-replies/" =
style=3D"color:#3b5998;text-decoration:none;">New APIs for Comment =
Replies</a></h3></div><div style=3D"color: #666666; font-size: =
10px;">Besok, 4 April jam 7:38</div><div style=3D"color: #666666; =
font-size: 10px;"> Published by <a =
href=3D"http://www.facebook.com/alex.madjar" =
style=3D"color:#3b5998;text-decoration:none;">Alex =
Madjar</a></div></td></tr></table><p>Last week, we <a =
style=3D"color:#3b5998;text-decoration:none;" . href=3D"https://www.facebo=
ok.com/notes/facebook-journalists/improving-conversations-on-facebook-with=
-replies/578890718789613" >launched</a> comment replies on Facebook pages =
and profiles with more than 10,000 followers.  This allows businesses and =
celebrities to engage with their fans more directly.  Today, we=E2=80=99re =
<a style=3D"color:#3b5998;text-decoration:none;" . =
href=3D"https://developers.facebook.com/docs/graphapi/guides/comments/" =
>updating the API</a> so developers can build tools that make it easier =
for brands to monitor and respond to comment replies.</p>

<p><img src=3D"http://dragon.ak.fbcdn.net/cfs-ak-ash3/676429/549/330199683=
768540-/delta-4.jpg"></p>

<div style=3D"font-size: 12px; font-weight: bold; margin-bottom =3D 0px; =
margin-top =3D 0px;">API Updates</div>

<p>Our API now supports different "views" of the comments on posts through =
our updated <a style=3D"color:#3b5998;text-decoration:none;" . =
href=3D"https://developers.facebook.com/docs/reference/api/Comment/" =
>comments API</a> and <a style=3D"color:#3b5998;text-decoration:none;" . =
href=3D"https://developers.facebook.com/docs/reference/fql/comment" >FQL =
comment table</a>.</p>

<p><b>Top Level Comments</b></p>

<p>The first view of the comments on a post is called "top level".  The =
comments that are on the post (and are not replies to individual comments) =
are called "top level comments."  Top level comments may be ranked, =
depending on the post and the number of top level comments on that post so =
far.</p>

<p>The top level view of comments corresponds to what a user would see on =
Facebook.  To get the top level view of comments in Graph API:</p>

<pre>GET {object_id}/comments?filter=3Dtoplevel</pre>

<p>In FQL, you can issue the request:</p>

<pre>
SELECT id, fromid, time, text, likes=20
FROM comment=20
WHERE object_id=3D{object_id} AND parent_id=3D'0'
</pre>

<p><b>Replies</b></p>

<p>Comments on comments are called "replies."  You get replies by querying =
for the comments on a comment id.</p>

<p>Graph API:</p>

<pre>GET {comment_id}/comments</pre>

<p>FQL:</p>

<pre>
SELECT id, fromid, time, text, likes=20
FROM comment=20
WHERE parent_id=3D{comment_id}</pre>

<p><b>Comment Stream</b></p>

<p>Another view of the comments on a post is the "stream".  The comments =
"stream" gives all comments (top level and replies to comments) together.  =
The "stream" view provides comments in chronological order, so it's easy =
for you to just get what's new.</p>

<p>Graph API:</p>

<pre>GET {object_id}/comments?filter=3Dstream</pre>

<p>FQL:</p>

<pre>
SELECT id, fromid, time, text, likes=20
FROM comment=20
WHERE object_id=3D{object_id}=20
ORDER BY time</pre>

<p><b>Getting Started with the APIs</b></p>

<p>To get started today with the new APIs, opt into the "July 2013 =
Breaking Changes" migration for your app by visiting the Advanced tab of =
your app dashboard.</p>

<p>If you're currently using our existing comments APIs, here are a few =
changes to keep in mind:</p>

<ul>
<li><p>'comments' field from 'stream' FQL table is deprecated.  Please use =
the'comment_info' column to fetch the 'can_comment' and 'comment_count' =
fields.</p></li>
<li><p>We are removing the fields on the FQL 'comment' table that were =
used exclusively for legacy <a =
style=3D"color:#3b5998;text-decoration:none;" . =
href=3D"https://developers.facebook.com/docs/reference/plugins/comments/" =
>Comments Plugins</a> -- 'xid', 'reply_xid', 'username' and =
'comments'.</p></li>
<li><p>We are removing the undocumented 'count' field on the 'comments' =
connection in the Graph API.  Please request =
'{id}/comments?summary=3Dtrue' explicitly if you would like the summary =
field which contains the count (now called 'total_count')</p></li>
</ul>

<p>Please read <a style=3D"color:#3b5998;text-decoration:none;" . =
href=3D"https://developers.facebook.com/docs/graphapi/guides/comments/#thr=
eaded" >the documentation</a> for details on how to use these new features =
and the <a style=3D"color:#3b5998;text-decoration:none;" . =
href=3D"https://developers.facebook.com/roadmap" >Roadmap</a> for details =
on the API changes.</p>

<p>We're excited to continue working with you, our community of =
developers, to improve the quality of the conversations happening on =
Facebook and can't wait to see what you build.</p>
</div><div =
style=3D"margin-bottom:15px;"></div></td></tr></table></td></tr><tr><td =
colspan=3D"2" style=3D"color:#999999;padding:10px;font-size:12px; =
font-family:'lucida grande',tahoma,verdana,arial,sans-serif;"><br/>This =
message was intended for fb&#064;vin-fm.com. Anda menerima surel ini =
karena anda telah memilih untuk menerima pembaruan pengembang dari =
Facebook. Ingin mengendalikan pembaruan pengembang mana saja yang anda =
terima? Pergi ke:<br/><a href=3D"http://developers.facebook.com/settings">=
http://developers.facebook.com/settings</a><br/>Facebook, Inc., Attention: =
Department 415, PO Box 10005, Palo Alto, CA =
94303<br/></td></tr></table></td></tr></table></body></html>



--b1_eb73243120b9db15202f5a94e955d561--

