user_generated导致没有标题或动作的故事

时间:2012-10-25 06:12:29

标签: php facebook facebook-graph-api

当我使用这些参数发布故事时(1)

{
'meal':(meal url),
'fb:explicitly_shared':'true',
'image[0][url]':(image url)
}

故事在活动日志中显示正常:“(用户)吃(用餐名称)”和小图片

我添加user_generated参数(2)

{
'meal':(meal url),
'fb:explicitly_shared':'true',
'image[0][url]':(image url),
'image[0][user_generated]':'true
}

这个故事出现了一幅大图,但没有动作文字!所见所见的是“(用户)”作为链接,以及旁边的图像。没有动作名称,没有对象名称。是什么给了什么?

参见附页截图: screenshot of activity log

发布代码(PHP SDK)

                $params = array(
                    'meal'=>$url,
                    'access_token'=>$token,
                    'fb:explicitly_shared'=>'true',
                    'image[0][url]'=>$imageUrl,
                    'image[0][user_generated]'=>'true',
                    'timestamp'=>date('c',strtotime($model->visible_date)-1),
                );
                if(!empty($meal->description)) {
                    $params['message']='I had '.$meal->description.' '.$url;
                }
                $out = $facebook->api('/me/appname_:have','POST',$params);

0 个答案:

没有答案