Reputation: 21
Since Graph API v2.3, the notification request have been deprecated. I am new to using the API's and I was wondering how to use the POST edge request found here: https://developers.facebook.com/docs/graph-api/reference/user/notifications/
More specifically, to retrieve the unread notification's for a user.
Here is the code I have so far:
function getInfo() {
FB.api("/me/notifications", function(response) {
console.log(response);
});
}
Upvotes: 0
Views: 1778
Reputation: 73974
That endpoint is for sending notifications only, you can´t get the unread notifications anymore. And you need to use an App Token with an App Scoped ID for that call. You should not use an App Token client side, so sending notifications should always be done server side.
More information: https://developers.facebook.com/docs/games/services/appnotifications
Upvotes: 1