php - Tagging friends in status updates from Facebook API -


i came across this blog post said it's possible tag in status update facebook app (= api):

however, doesn't seem work me.

it tried in 3 different ways:

$post = $facebook->api('/me/feed', 'post', array(     'access_token' => $session['access_token'],     'message' => 'hello @[562372646:lionel cordier], how you?' )); 

or

$access_token = $session['access_token']; $message = 'hello @[562372646:lionel cordier], how you?'; $curl_post = 'access_token='.$access_token.'&message='.$message; $ch = curl_init(); curl_setopt($ch, curlopt_url, 'https://graph.facebook.com/me/feed'); curl_setopt($ch, curlopt_header, 1); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_post, 1); curl_setopt($ch, curlopt_postfields, $curl_post); $data = curl_exec($ch); curl_close($ch); 

or

$access_token = $session['access_token']; $message = 'hello @[562372646:lionel cordier], how you?'; $curl_post = 'access_token='.$access_token.'&status='.$message; $ch = curl_init(); curl_setopt($ch, curlopt_url, 'https://api.facebook.com/method/users.setstatus'); curl_setopt($ch, curlopt_header, 1); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_post, 1); curl_setopt($ch, curlopt_postfields, $curl_post); $data = curl_exec($ch); curl_close($ch); 

but nothing works. result have "hello @[562372646:lionel cordier], how you?" on wall.

but if type "hello @[562372646:lionel cordier], how you?" directly in facebook, works correctly.

what doing wrong?

i struggling problem last week , found following bug report, suggests (given current assigned status) cannot done yet:(

http://developers.facebook.com/bugs/395975667115722/


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -