사용자의 벽에 게시 할 코드가 있지만, 페이지가로드 될 때 게시됩니다. 게시물이 필요할 때만 게시해야합니다. 내 벽에 단추가 제출됩니다. 그 양식 조치에 나열된 페이지이기 때문에제출 버튼을 눌렀을 때만 액션이 발생합니다.
<div align="center">
<form method="GET" action="translate.php">
<textarea name="status2" cols="50" rows="5"<input type="text"/>
<?php echo str_ireplace(array ('old','awkward','all','again','behind','along','alright','hello','among','children','yes','child','kids','food','barnard castle','beer','book','blow','beautiful','bird','burst','brown','burn','boots'),
array ('auld', 'aakwad', 'aall','agyen','ahint','alang','alreet','alreet','amang','bairns','aye','bairn','bairns','bait','barney','beor','beuk','blaa','bonny','bord','borst','broon','bourn','byeuts'),$status); ?>
</textarea><br>
<input type="submit" value="post to wall"
// i did try my wall code here but it still posted on page load
/>
</form>
</div>
<?php
$args = array(
'message' => 'Hello World',
'link' => 'http://apps.facebook.com/geordie-status/',
'caption' => 'Translate from English to Geordie'
);
$post_id = $facebook->api("/$uid/feed", "post", $args);
?>
lmao, 난 그냥 알아 냈어하지만 post.php 양식 동작을 변경하고 위의 경우 post.php 기본적으로 추가했습니다. 어쨌든 고마워, 당신은 여전히 대답을 틱받을 : D 조 –