0

我必须在 facebook 页面上发布文章的标题(带链接)发布在博客上。不幸的是,我只能发布链接,但没有标题。我能怎么做?

我正在使用的 PHP 代码是这样的:

   require ("facebook.php");
   $facebook = new Facebook(array(
   'appId' => 'XXXXXXXXXXXX',
   'secret' => 'XXXXXXXXXXXXXXXXXXXX',
   'cookie' => true
   ));

   // id page
   $pageId = "136860079786056";
   // permanent session token
   $permSess = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

   // writing
   $test = $facebook->api(array(
   "uid" => $pageId,
   "method" => "stream.publish",
   "access_token" => $permSess,
   "message" => "http://www.mysite.it/functions.php?p=view&id=31", ));
4

1 回答 1

1

有一个link变量可以用于链接。

例如

"link" => "http://google.com",
"message" => "The search engine we can't mention"
于 2013-07-19T19:33:33.547 回答