Skip Navigation LinksHome > Categories > Code from a Category

Developing Face book Application with .NET Using Face book Notifications



User Name: tippu
Name: King SheZ
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
7 years of enterprise application development, so far in my career i have worked on enterprise web applications with millions of users,i have also worked on many integrations between applications, i h... [More]
Viewed Times: 1821
Add Date: 07/22/2011
So far, so good from my last post. If you have read my previous related posts we have developed a Facebook-like interface; the user selects data; the selected data is being saved in the database.

However, I forgot that Facebook really is a social network: it's about social interactions... Let's add "social interaction" in the form of user notifications to our Facebook Application. Thanks to the Facebook Developer Toolkit library, notifications are very easy to do:





To send a notification, we need to call the SendNotification() method and pass the notification text and ID of a Facebook user. In this code, the ID is of a selected Friend. Because I'm too lazy, the notificationTextToFriend notification text is built into the stored procedure, not into the application code. However, you can "compose" notification in the code, as well. The result is something like this:





...where, in my stored procedure, I can do something like this:

)

And that's it for this post, hopefully it will help you.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.