Я использую следующее, чтобы разместить сообщение на моей странице в Facebook:
$attachment = array(
'access_token' => $access_token,
'message' => 'This is a test Message 4:',
'name' => "This is a test Name 4",
'link' => "http://slashdot.org/",
'description' => "This is a test Description 4"
);
$ret_code=$facebook->api('/me/feed', 'POST', $attachment);
Это отлично работает.
Как удалить тот же пост с помощью facebook GRAPH api? Я прочитал документацию, и в нем говорится, что нужно выпустить POST, например:
https://graph.facebook.com/COMMENT_ID?method=delete
Чтобы проверить, я установил это в простой форме с кнопкой отправки, В частности, в контексте класса черт:
template
struct trait;
template <>
struct trait {
typedef int type;
};
template
struct trait > {
typedef struct {
T value;
} type;
};
trait::type foo; // Is this valid?
template
void f() { }
f::type> >(); // Is this?
template
void g() { f::type>(); }
g(); // And this?
Это достоверно и надежно? Он компилируется в последних версиях GCC и LLVM, но я все еще не уверен, действительно ли это строго и понимается ли это VC ++ и ICC.