Đã hoàn thành

facebook application to publish actions

Looking for experienced developers to fix the issues mentioned below in a php facebook application to publish user action on timeline along with tagging people/page

When I click on submit for facebook approval, I get below message.

"Publish Actions

You must publish at least one action to your Timeline using this action type. Review the documentation."

Need help with below code.

require_once '/libraries/facebook-php-sdk/src/[url removed, login to view]';

$config = array(

'appId' => '***********',

'secret' => '*************',


$facebook = new Facebook($config);

$user_id = $facebook->getUser();

if($user_id) {

/* $attachment = array(

'link' => '[url removed, login to view]',

'message' => 'Posting with the PHP SDK!'



$attachment = array(

'video' => '[url removed, login to view]',

'message' => 'Test message',



array( 'message' => 'The status header',

'link' => '[url removed, login to view]',

'picture' => '[url removed, login to view]',

'name' => 'Name of the picture, shown just above it',

'description' => 'Full description explaining whether the header or the picture' ) );


// We have a user ID, so probably a logged in user.

// If not, we'll get an exception, which we handle below.

try {

//$ret_obj = $facebook->api('/me/feed', 'POST', $attachment );

$ret_obj = $facebook->api('testnamespace:watch', 'POST', $attachment );

echo 'Post ID: ' . $ret_obj['id'] . '';

} catch(FacebookApiException $e) {

// If the user is logged out, you can have a

// user ID even though the access token is invalid.

// In this case, we'll get an exception, so we'll

// just ask the user to login again here.

$login_url = $facebook->getLoginUrl( array(

'scope' => 'email, publish_actions'


print 'Please login';




// Give the user a logout link

echo 'logout';

} else {

// No user, so print a link for the user to login

// To post to a user's wall, we need publish_stream permission

// We'll use the current URL as the redirect_uri, so we don't

// need to specify it here.

$login_url = $facebook->getLoginUrl( array( 'scope' => 'email, publish_actions' ) );

print 'Please login';


Kĩ năng: Quảng cáo trên Facebook, PHP

Xem nhiều hơn: must publish action timeline using action type, publish action timeline using action type review documentation, facebook php publish actions, post wall using publish_actions, your email is invalid facebook, www developers facebook com, submit your feed, submit video url, sdk facebook php, scope php developers, php developers facebook, facebook login new user name, facebook invalid email, facebook developers php login, facebook developers page, facebook developers api, facebook com developers, facebook php publish action, facebook publish page php, publish action facebook php, facebook php publish_actions, facebook application php, facebook login logout, facebook for developers, www facebook com developers

Về Bên Thuê:
( 6 nhận xét ) Harrison, United States

ID dự án: #1640444

Được trao cho:


Hi, I have 5 years of experience in facebook applications. i have the fix ready for your [login to view URL] PM me for the [login to view URL] my previous reviews for facebook work, all my clients are satisfied with my work.

$50 USD trong 0 ngày
(45 Đánh Giá)

4 freelancer đang chào giá trung bình $135 cho công việc này


Ready To Fix Right Now, Please Read Your PM.

$150 USD trong 1 ngày
(4 Nhận xét)


$190 USD trong 3 ngày
(0 Nhận xét)

at your service

$150 USD trong 5 ngày
(0 Nhận xét)