Я хочу отправить сообщение с message_tags с помощью Graph API.
Я подтвердил сообщение только на PHP, но не работает с message_tags ..
Это пример кода.
---------
<?php
require_once('facebook.php');
$facebook = new Facebook(array(
'appId' => '127916833975***', // masked
'secret' => 'a3271136ad68587d8e83171148f93***' // masked
));
$request_params = array('message' => mb_convert_encoding('test posting message', 'UTF-8', 'EUC-JP'));
$tags = array(
'id' => '100000834278***', // masked
'name' => 'MY_FRIENDS_NAME', // masked
'offset' => 0,
'length' => 15 // friend name length
);
$request_params['message_tags'] = $tags;
$facebook->api('/feed', 'POST', $request_params);
?>
---------
В поле message_tags документа
---------
object containing fields whose names are the indexes to where objects are
mentioned in the message field; each field in turn is an array containing
an object with id, name, offset, and length fields, where length is the
length, within the message field, of the object mentioned
---------
https://developers.facebook.com/docs/reference/api/post/
Допустимые области: read_stream и publish_stream.