我是否可以获得 Facebook应用程序的正确代码,该代码允许将应用程序的结果图像共享或发布到用户墙(时间轴)。
目前我正在使用以下代码; -
$attachment = array(
'message' => 'this is my message',
'name' => 'This is my demo Facebook application! https://apps.facebook.com/whoisyourmillionare/',
'caption' => "Caption of the Post",
'description' => 'this is a description',
'picture' => 'http://www.nasa.gov/images/content/297522main_image_1244_946-710.jpg');
$result = $facebook->api('/me/feed/', 'post', $attachment);
并且输出与图像1
中的输出相同实际上我需要像图像2
一样