필자는 필자의 페이스 북 앱을 위해 필사적으로 이미지 첨부 PHP API 피드를 찾고 있습니다.stream.publish에 대한 이미지 첨부 API API 피드를 찾고 있습니다.
기본적으로 내가하려는 것은 자동 "친구의 벽에 게시"작업과 함께 이미지 첨부 파일을 보내는 것입니다.
그 뒤에있는 아이디어는 사용자가 친구의 벽에 "가상 버거"를 보내고 할인 메시지를 제공한다는 것입니다.
메시지를 성공적으로 보내는 코드 스 니펫이지만 첨부 파일이 작동하지 않습니다.
if($_REQUEST['friend_1']!='' && $_REQUEST['friend_1']!="Start typing a friend's name") {
try {
$fql1 = "select name from user where uid=" . $_REQUEST['friend_1'];
$param1 = array(
'method' => 'fql.query',
'query' => $fql1,
'callback' => ''
);
$fqlResult1 = $facebook->api($param1);
$friend_1_name = $fqlResult1[0]['name'];
$statusUpdate = $facebook->api('/'.$_REQUEST['friend_1'].'/feed', 'post', array('link' => $fanpageURL, 'name' => 'Have a virtual Unity Burger.', 'description' => " ".$user_name." just sent you a virtual Unity Burger. If you would rather have the real thing then come add your name on the Unity list and we will give you a 20% discount on your next visit and an exclusive Unity keyring.", 'properties' => '', 'cb' => ''));
} catch (FacebookApiException $e) {
//echo "Notification not send to user ".$fqlResult1[0]['name']."<br>";