hi, i am not a coder and trying to make this work
var body = 'Reading Connect JS documentation';
FB.api('/me/feed', 'post', { message: body }, function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response.id);
}
});
to make it work above code
I added this to make it work and it did
<body onload = "updating()" >
<script type="text/javascript" language="JavaScript">
function updating(){
I added the code here
}
</script>
so what would i do or add tho make the below code work when the page loads?
Thank you
$args = array(
'message' => 'Hello from my App!',
'link' => 'http://www.mysite.com/',
'caption' => 'Visit Ma.....I.com For Facebook API Tutorials!'
);
$post_id = $facebook->api("/me/feed", "post", $args);