Reputation: 978
I have advanced further in my app, now I have two users who has allowed my app, Alice and Bob, now Alice wants to send notifications to invite Bob to an event in a place.
App Notifications: https://developers.facebook.com/docs/concepts/notifications/#impl
I don't know if I can use the graph api to do this, or I have to do it through HTTP like in the example. (I'd rather use Javascript, maybe FB.api? but how?)
By the way, how I get the access_token for use it? Is it always the same or this expires having to ask for it again?
PS. Moreover, maybe this is out of topic -I don't know-, Is it possible to do this with Open Graph and what advantages would give us this.
Thanks in advance.
Upvotes: 1
Views: 1969
Reputation: 20753
For the notifications
, yes you can use the API (PHP/JS), something like :
"/{recipient_userid}/notifications?PARAMS"
Learn about the access tokens
here. You can get the token after user authorize your app. (detials in the link)
Open Graph is a different concept. Please read the docs. It totally depends on your requirement what exactly you are trying to implement.
Upvotes: 3