How to send a Facebook notification through their API

后端 未结 5 1101
轻奢々
轻奢々 2020-12-24 13:42

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 o

相关标签:
5条回答
  • 2020-12-24 14:00

    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?

    0 讨论(0)
  • 2020-12-24 14:01

    You need to post it to -

    https://graph.facebook.com/

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

    0 讨论(0)
  • 2020-12-24 14:02

    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.

    0 讨论(0)
  • 2020-12-24 14:12

    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/

    0 讨论(0)
  • 2020-12-24 14:12

    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= …
    0 讨论(0)
提交回复
热议问题