簡體   English   中英

如何在facebook活動牆上發帖?

[英]how to post on a facebook event wall?

我是facebook app開發的新手,我正試圖在活動牆上自動發帖。 我已閱讀,其中包括要在特定牆上發布的ID。 我試過了,但它不起作用。

我想也許它可以用“to”(一個特定的目標牆),但我不知道它的語法......

有人可以幫忙嗎? 或者至少給出一個包含“to”屬性的post語法示例... plssss ...

$attachment = array(
                'message' => 'this is my message',
                'name' => 'This is my demo Facebook application!',
                'caption' => "Caption of the Post",
                'link' => 'http://mylink.com',
                'description' => 'this is a description',
                'picture' => 'http://mysite.com/pic.gif',
                'actions' => array(array('name' => 'Get Search',
                'link' => 'http://www.google.com'))
                );
$uid = ""; //friend id OR "me"
$result = $facebook->api('/'.$uid.'/feed/','post',$attachment);


注意 :您應該具有用戶publish_stream擴展權限,並且您應該加載SDK Lib

$attachment = array(
                'message' => 'this is my message'
                );
$eid = ""; //event id
$result = $facebook->api('/'.$eid.'/feed/','post',$attachment);

http://developers.facebook.com/docs/reference/api/event/ < - 事件對象文檔

要么

https://api.facebook.com/method/stream.publish?message=<your_message>&target_id=<event_id>&access_token=<your_token>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM