Deprecated: Assigning the return value of new by reference is deprecated in /depo/web490/2009/realmlab/wordpress/wp-settings.php on line 520 Deprecated: Assigning the return value of new by reference is deprecated in /depo/web490/2009/realmlab/wordpress/wp-settings.php on line 535 Deprecated: Assigning the return value of new by reference is deprecated in /depo/web490/2009/realmlab/wordpress/wp-settings.php on line 542 Deprecated: Assigning the return value of new by reference is deprecated in /depo/web490/2009/realmlab/wordpress/wp-settings.php on line 578 Deprecated: Function set_magic_quotes_runtime() is deprecated in /depo/web490/2009/realmlab/wordpress/wp-settings.php on line 18 Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1244 Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/classes.php on line 1442 Strict Standards: Redefining already defined constructor for class wpdb in /depo/web490/2009/realmlab/wordpress/wp-includes/wp-db.php on line 306 Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /depo/web490/2009/realmlab/wordpress/wp-includes/cache.php on line 431 Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /depo/web490/2009/realmlab/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Redefining already defined constructor for class WP_Dependencies in /depo/web490/2009/realmlab/wordpress/wp-includes/class.wp-dependencies.php on line 31 Strict Standards: Redefining already defined constructor for class WP_Http in /depo/web490/2009/realmlab/wordpress/wp-includes/http.php on line 61 RealmLab » Blog Archive » Facebook Status Message Update

Facebook Status Message Update

This week, I implemented a new functionality to enhance the engagement within the game.

Facebook provides Status Message updating ability with its API. But in order for an application to update a user’s status message, it needs to take the extended permissions from the user, namely “status_update” permission, which is actually a sub-permission of “publish_stream” permission.

I implemented a JavaScript object which makes an AJAX call to our servers to update a user’s status. Our servers tries to set the status of the user from the PHP library that makes REST calls to Facebook servers. If the Facebook servers respond the calls with a specific error code, which means that user had not granted the extended permission for status updating, our servers forward this error code to client as the AJAX response. Then the JS object stores the status message for resending it later, and pops up a dialog requesting extended permission from the user. If the user grants the permission, the JS object resends the status message that is backed-up. If not, it does nothing :)

I integrated this functionality with our in-game message posting functionality for now. When a message is postded by someone, if the user checks the option to also set his or her Facebook status message, the JS object makes necessary calls to set users status.

 

No Responses to “Facebook Status Message Update” (post new)

 

Leave a Reply

 

Categories

Blogroll

Tags