taxman
taxman

Reputation: 501

How to send notification using Facebook API?

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

Answers (2)

Aminos
Aminos

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

ifaour
ifaour

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

Related Questions