1 Replies - 578 Views - Last Post: 13 September 2012 - 02:56 PM Rate Topic: -----

#1 revvcross  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 18-August 11

automatically post ad to my wall in facebook

Posted 13 September 2012 - 02:45 PM

I'm trying to code something in php that i can put into a facebook app that will automatically make a weekly post on MY wall. The post will be an ad from my work website, which is updated every week as well. So far this is what i got...

<?
$picture_url = "http://oxphantomxo.deviantart.com/art/The-doctor-s-happy-face-193080340";
$today = date("D");

require_once 'fb_access.php';

// if it's wednesday, post the pic
if ($today = 'Thurs'){
	$status = $facebook->api('/me/feed', 'POST', array('message' => $picture_url));
	var_dump($status);
}
?>


I'm sure there's more i need...

This post has been edited by Atli: 13 September 2012 - 09:48 PM
Reason for edit:: Use [code] tags when posting code.


Is This A Good Question/Topic? 0
  • +

Replies To: automatically post ad to my wall in facebook

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9194
  • View blog
  • Posts: 34,516
  • Joined: 12-June 08

Re: automatically post ad to my wall in facebook

Posted 13 September 2012 - 02:56 PM

What makes you think there is more?

Post a link to a User's wall using the Graph API
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1