1
PHP를 스크립팅 언어로 사용하여 페이스 북에 벽 포스트를 만들려고 시도하는 중에 페이스 북에 대한 성공적인 인증 후에 스크립트가 중지됩니다. 사용 된 코드는 다음과 같습니다. 해결하도록 도와주십시오. 이 문제.페이스 북의 벽 게시가 제대로 작동하지 않습니다.
$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
);
Facebook not face book –