How to get Facebook page notification new comments/posts via Graph API in ASP.NET


Hi, I have to add a method to get the posts and comments from graph api : But as we know every minute or every 5 minute we have a new posts and comments. And when I move to the view that contains the posts and comments I can't recieve the new posts and comments like a notifications . like facebook when any one post or comment into a page facebook we get a notification and that notification when click on it, the new comments shown or posts.

Please how can I do that ? thanks.


Asked by:- LuneAgile
0
: 3163 At:- 11/5/2018 9:53:01 AM
ASP.NET graph-api-comments-posts







3 Answers
profileImage Answered by:- vikas_jk

You have already got the answer about this here

https://qawithexperts.com/questions/385/refresh-posts-and-comments-get-new-posts-and-comments-from-g

Now, once you are able to get the new notifications and posts from api, push notification to user using SignalR in ASP.NET 

https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction?view=aspnetcore-2.1

https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-2.1&tabs=visual-studio

https://www.codemag.com/article/1210071/The-Simplest-Thing-Possible-Creating-Push-Notifications-with-SignalR

The above links should help you understand SignalR and using it in .net core

1
At:- 11/6/2018 6:58:13 AM


profileImage Answered by:- LuneAgile

Hello. I have found that webhooks can get new changes in our events facebook ( page/user...) . at the below link :

https://developers.facebook.com/docs/graph-api/webhooks/getting-started/webhooks-for-pages#set-up-endpoint-and-product

but still able to understand it clearly. 

0
At:- 11/5/2018 10:47:52 AM Updated at:- 11/5/2018 10:48:05 AM


profileImage Answered by:- LuneAgile

Thanks Vikas_jk .

0
At:- 11/6/2018 11:58:33 AM






Login/Register to answer
Or
Register directly by posting answer/details

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use