Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send a Facebook notification through their API

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.

like image 241
at. Avatar asked Jan 06 '11 19:01

at.


People also ask

How do I share a Facebook post with API?

Yes, you can share using the graph2 api. The way you do it is to use /feed edge and pass the post's url that you want to share as the link. Standard Fb permissions to the post you are sharing do apply. This was done today, in a local rails app, using FbGraph2 gem, with the above method.

Does Facebook allow API?

The Facebook API allows your app — and your app users — to access and manage content in their Facebook Group. With this API, you can let people publish content from your app to their Group.

Is the Facebook API free?

In the newest version of the Graph API (v2. 9), we're announcing features that simplify development, making it even easier to build apps and experiences with Facebook. We're providing free access to over 140 million places around the world, the same data that powers Facebook, Instagram, and Messenger.


2 Answers

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/

like image 187
oneamongu Avatar answered Sep 19 '22 13:09

oneamongu


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= …
like image 20
R.Kueny Avatar answered Sep 22 '22 13:09

R.Kueny