2012-05-01 33 views
1

PHPをスクリプト言語として使用してFacebookに壁紙を投稿しようとしているうちに、facebookへの認証が成功した後にスクリプトが停止します。使用されるコードは以下のとおりです。この問題。facebook wallの投稿が正しく機能していない

$facebook = new Facebook(array(
     'appId' => $app_id, 
     'secret' => $app_secret, 
     'cookie' => true 
     )); 
     $fbcheck= $facebook->getUser(); 

     if(is_null($fbcheck) or !$fbcheck or $fbcheck==0) 
     { 
     header("Location:{$facebook->getLoginUrl(array('scope' => 'user_status,publish_stream,user_photos,photo_upload'))}"); 

     } 

     $attachment = array(
     'message' => 'Hello friends , try this job :)', 
     'name' => "Jobslanda - The perfect job information system. ", 
     'caption' => "My Caption", 
     'link' => 'google.com', 
     'description' => 'Jobslanda is one of the perfect job sharing system.', 
     //'picture' => $urlParser->fbpostpic($input['ik']), 
     'actions' => array(array(
      'name' => 'Get Search', 
      'link' => 'http://www.google.com' 
     )) 
    ); 
     $result = $facebook->api(
     '/me/feed/', 
     'post', 
     $attachment 
    ); 
+0

not face book –

答えて

1

print_r($ result);番号のあるIDを返すかどうかをチェックします。

関連する問題