This week we spotlighted Goodread's use of the Open Graph, announced our commitment to providing distribution across all platforms and completed 90% of the Open Graph Submissions
The like_info
field is an object containing information about the like count, if the user likes the object and if the object can be liked.
The comment_info
field is an object containing the comment count and if the object allows comments.
To access the comment_info
and like_info
for the The "Happy Lunar New Year 2011" album (Try this query)
SELECT comment_info, like_info FROM album WHERE aid="20531316728_324257"
The following PHP example demonstrates how to query the album table with the PHP SDK:
$facebook = new Facebook(array( 'appId' => 'APP_ID', 'secret' => 'APP_SECRET', )); $user = $facebook->getUser(); if ($user) { try { $fql = "SELECT comment_info, like_info FROM album WHERE owner=me()"; $response = $facebook->api(array( 'method' => 'fql.query', 'query' => $fql, )); } catch (FacebookApiException $e) { error_log($e); $user = null; } } print_r($response)
This query returns the following objects for each album:
[comment_info] => Array ( [can_comment] => 1 [comment_count] => 0 ) [like_info] => Array ( [can_like] => 1 [like_count] => 0 [user_likes] => )
Removing the third settled callback from Payments. To ensure the best experience for users, we are asking developers to ensure that they are fulfilling the order in the callback with status=placed. We assure you that once we call you with status=placed and you respond with settled, the transaction will be complete and you will be paid. You should not be waiting for the settled callback before fulfilling the order.
To reduce confusion we are completely removing the settled callback. For more information please read the Facebook Credits Update blog post.
Returning up to 960px wide photos in "photo" FQL table and photo Graph API. On March 1st, 2012 we will begin returning photos up to 960px wide in the src_big field of the photo FQL table, as well as the source field of the photo object, increasing the current max width of 720px.
Please refer to the Platform Roadmap for more info.
Activity on facebook.stackoverflow.com this week:
TAGS