/ Published in: PHP

La función del SDKphp de facebook 'notifications' envia una notificación por parte de la aplicación al usuario que quieras (que haya aceptado tu aplicación).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
include('inc/facebook.php'); 'appId' => '149443111891577', 'secret' => 'fa2dbe4a1b73ead4a03d817fe17ab3bf', 'grant_type' => 'client_credentials' )); $enviar = 1; //Solo para que no envie siempre if($enviar == 0){ 'access_token' => 'app_key|secret_key', 'href' => '', //this does link to the app's root, don't think this actually works, seems to link to the app's canvas page 'template' => 'El Gurú ha respondido tu pregunta', 'ref' => 'user_id' //Parametros por ejemplo )); } $user_id = $ids[0]; $id_preg = $ids[1]; }else{ $user_id = ""; $id_preg = ""; }
Comments
