PlaceAVote / pav-api

This repository contains the Placeavote API.
0 stars 0 forks source link

Send Facebook users app notifications with comment replies #53

Open johnboy14 opened 8 years ago

johnboy14 commented 8 years ago

When users reply to users comments we want to publish a notification on their Facebook accounts to drive users back to the site.

App Notification docs

https://developers.facebook.com/docs/games/services/appnotifications

We can not do this with our current short lived access tokens, so on signup and authentication we need to use the short lived token to request a long lived token instead. Once we have that we can publish notifications from our App.

Generating Long Lived Access Tokens

https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension#long-via-code