Skip to content

binhho/fbchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fbchat

Awesome fb messaging api using php

usage:

<?php
require_once(‘facebook.message.php’); //requires file
require_once(‘facebook.php’); //sdk provided by facebook, you need one for tokens and
//all
$facebook=new Facebook(‘appId’ => ‘your_app_id’,'secret’ => ‘your_app_secret’);
$message=new SendMessage($facebook);

$receiverId=”; // this may either be username or userID, this class takes care of both the //cases
$message=’test message’;
if($message->sendMessage($body,$receiverId))
{
echo ‘message sent’;
}else
{
echo ‘some error occured’;
}
?>

About

Awesome fb messaging api using php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published