%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nailstv/public_html/fb/
Upload File :
Create Path :
Current File : /home/nailstv/public_html/fb/wall_post.php

<?php
/*  
  param2 -> képfájl (http://www.mukorom.hu/images/.../xy.jpg) 
  param3 -> cim
  param4 -> szoveg
  param5 -> link
  http://mukorom.hu/fb_bestnails_admin/index.php?func=wall_post
  http://mukorom.hu/fb_bestnails_admin/index.php?func=wall_post&param1=1&param2=http://www.mukorom.hu/img/csillagok.gif&param3=Tesztcim&param4=tesztszoveg&param5=http://www.bestnails.com
*/
  echo "<center><h2>Wall post...</h2></center>";  
         
  $fb_accounts = $facebook->api('/me/accounts');        
  foreach ($fb_accounts['data'] as $value)
  { 
    if ($value['id']==$portal_id[1]) $token=$value['access_token'];
  }

  echo $token.",".$param2.",".$param3.",".$param4.",".$param5;     
  try 
  {	
		$statusUpdate = $facebook->api	('/'.$portal_id[1].'/feed', 'post',array (
      'access_token'=>$token,
      'uid' => $portal_id[1],
		  'picture' => $param2, 
      'name'    => $param3,
      //'caption' => $param4,
      'description' => $param4,   
			'link'    => $param5,
			'cb'      => '',
	  ));
    $error.="Succesfully posted the article!<br>";
	} 
	catch(FacebookApiException $e)
	{
    $error.="There was an error occured!<br>";
	  d($e);
	}
  
?>

Zerion Mini Shell 1.0