How to send a Facebook notification through their API

55,136

Solution 1

Update : Please check oneamongu's answer below. In my old answer I was referring to the custom notifications. oneamongu defined the requests structure very well below.

Old answer : Facebook Notifications were outdated by facebook about 1 year ago. Instead, you can post on a user's wall if you wanna inform him.

Solution 2

I know this is an old post - but someone might stumble on it as I did, and find it useful: The notifications area in FB is updated by sending Requests which can be sent by using FB dialogs. The JS SDK provides the FB.ui() method to show dialogs for posting to stream, or sending a request.

More Info on FB: http://developers.facebook.com/docs/reference/dialogs/requests/

http://developers.facebook.com/docs/reference/javascript/FB.ui/

Solution 3

Apparently facebook activate again the possibility to send notifications :

https://developers.facebook.com/docs/app_notifications/#ux

POST /{recipient_userid}/notifications?access_token= … &template= … &href= …

Solution 4

You need to post it to -

https://graph.facebook.com/

for example - https://graph.facebook.com/{recipient_userid}/notifications? access_token= ... href= ... & template= ...

Solution 5

because when I run the query: {recipient_userid}/notifications? access_token= ... href= ... & template= ...

it's work only in facebook WEB?

I see the notification on the web facebook, but do not see it on facebook Mobile?

Share:
55,136
at.
Author by

at.

Updated on February 15, 2020

Comments

  • at.
    at. about 4 years

    I asked this on the Facebook Developers Forum with no responses.. How do I send notifications to users so they show up in the Notifications globe icon tab on the top left of a user's Facebook page? Some applications I use have their notifications show up there, but I don't see how that mechanism works in Facebook's API docs. Neither are there any permissions which seem to be required to send users notifications.