I have some Facebook user in my database with their facebook id which is I have got after they login via my facebook app. Now I want to post their wall after a certain period using php.
I have got their user id using below code-
include_once "facebook.php";
$facebook = new Facebook(array(
'appId' => xxxxxxxxxxxxxxx,
'secret' => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
'cookie' => true,
));
$user = $facebook->getUser();
if ($user) {
try {
$user_profile = $facebook->api('/me');
} catch (FacebookApiException $e) {
print_r($e);
$user = null;
}
}
I have got their id from $user_profile variable.
I am using this scope to login "email,publish_actions"
Please give me some sample code if possible, I'm too much worry about this :(
Sorry for my poor English