2011-06-11 125 views
0

我做了一個使用javascript和HTML5 Canvas元素的蛇遊戲。它可以在apps.facebook.com/snaqe_game找到。我已經獲得了權限,並使用Facebook開發人員文檔授權了publish_feed或其他應用程序,但是我面臨的問題是將玩家的分數發佈在他的牆上。 請注意:如何使用cURL在facebook應用程序的用戶Facebook上發佈?

  • 我沒有PHP SDK

請參見:apps.facebook.com/mg-copter

+0

能你發佈確切的消息? – 2011-06-11 08:17:00

回答

1

Update Facebook News Feed using the Graph API in PHP

$data = array(); 
$data['post'] = array(
    'access_token' => $access_token, 
    'message' => 'this is the message', 
    'picture' => 'http://sudocode.net/wp-content/uploads/2011/01/developer.facebook.com_banner-150x150.png', 
    'link' => 'http://sudocode.net/article/313/how-to-register-a-new-facebook-application/', 
    'name' => 'How to Register a New Facebook Application', 
    'caption' => 'sudocode | it looks like it works', 
    'description' => 'Here are some notes on how to register a new Facebook application.', 
    'actions' => '{"name": "Read the Article", "link": "http://sudocode.net/article/313/how-to-register-a-new-facebook-application/"}', 
    ); 
$response = xhttp::fetch("https://graph.facebook.com/{$profile_id}/feed", $data); 
+0

對於任何一個看,該頁面現在http://codecri.me/case/318/update-facebook-news-feed-using-the-graph-api-in-php/ – Arvin 2012-04-26 15:22:30

+0

@阿爾文更新了鏈接,謝謝 – 2012-04-26 20:36:19

相關問題