Reputation: 501
What is the best way to send a notification to a friend of a facebook user that approved my app?
I know I can write on the friends' wall, but is there another way to leave any kind of notification?
Thanks.
Upvotes: 1
Views: 2545
Reputation: 1
$notificationdata = array(
'href'=> 'https://apps.facebook.com/MY_APP/',
'access_token'=> $app_token,
'template'=> '180 char string as information'
);
$sendnotification = $facebook->api('/' . $user_id . '/notifications', 'post',
$notificationdata);
Upvotes: 0
Reputation: 38135
In terms of notifications and NOT invitations, no there are no more options. As you can see in the permissions documentation page, you can't access the friend's email.
Upvotes: 1