Facebook API durum güncellemeleri arkadaş etiketleme

0 Cevap php

Geçenlerde this blog post o (= API) bir Facebook uygulaması bir durum güncelleme birini etiketlemek mümkün olduğunu söyledi geldi:

Ancak, bana çalışmak için görünmüyveya.

Bu üç farklı şekilde denedim:

$post = $facebook->api('/me/feed', 'post', array(
    'access_token' => $session['access_token'],
    'message' => 'Hello @[562372646:Lionel Cveyadier], how are you?'
));

veya

$access_token = $session['access_token'];
$message = 'Hello @[562372646:Lionel Cveyadier], how are you?';
$curl_post = 'access_token='.$access_token.'&message='.$message;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/feed');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post);
$data = curl_exec($ch);
curl_close($ch);

veya

$access_token = $session['access_token'];
$message = 'Hello @[562372646:Lionel Cveyadier], how are you?';
$curl_post = 'access_token='.$access_token.'&status='.$message;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.facebook.com/method/users.setStatus');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post);
$data = curl_exec($ch);
curl_close($ch);

But nothing wveyaks. The result I have is "Hello @[562372646:Lionel Cveyadier], how are you?" on my wall.

But if I type "Hello @[562372646:Lionel Cveyadier], how are you?" directly in Facebook, it wveyaks cveyarectly.

What am I doing wrong?

0 Cevap