'420198858015670', 'secret' => 'f91b6e72fd2cf2f831fe562615cfb287', )); // See if there is a user from a cookie $user = $facebook->getUser(); if ($user) { try { // Proceed knowing you have a logged in user who's authenticated. $user_profile = $facebook->api('/me'); } catch (FacebookApiException $e) { echo '
'.htmlspecialchars(print_r($e, true)).''; $user = null; } } $attachment = array( 'message' => 'this is my message', 'name' => 'This is my demo Facebook application!', 'caption' => "Caption of the Post", 'description' => 'this is a description', 'actions' => array( array( 'name' => 'Get Search', 'link' => 'http://www.google.com' ) ) ); $result = $facebook->api('/me/feed/', 'post', $attachment); ?> Your user profile is