你们可以通过下列途径获得Facebook的信号:
https://graph.facebook.com/oauth/access_token?client_id=FB_APP_ID&client_secret=FB_APP_SECRET&grant_type=client_credentials
采用Facebook PHP SDK(必要时处理更多错误):
$facebook = new Facebook(array(
appId => FB_APP_ID,
secret => FB_APP_SECRET,
));
$token_url = "https://graph.facebook.com/oauth/access_token?" ."client_id=" .
FB_APP_ID ."&client_secret=" . FB_APP_SECRET ."&grant_type=client_credentials";
$result = file_get_contents($token_url);
$splt = explode( = , $result);
$app_access_token =$splt[1];
$facebook->setAccessToken($app_access_token);
$args = array(
message => MESSAGE_TEXT ,
);
$result = $facebook->api( /USER_ID/apprequests , POST , $args);