how facebook notification work at backhand - facebook

I am trying to understand facebook like live notifications system to notify users, whenever someone adds them as friend, like their post or posts replies to their comments. This happens as soon as someone hits like button or posts comment in facebook. I was wondering if there is any server side or scripting can be done so that whenever there is new notification entry in my database table,
kindly suggest how it works in facebook.

It's done using push events: http://en.wikipedia.org/wiki/Push_technology

Related

Facebook Webhooks with pages - only want to get posts

I'm using Facebook Webhooks with a an app subscription to a page.
I've it linked to functions in Firebase, and so far everything is running really well. However, the one snag is that its recording every comment, like and update! With a really busy facebook page thats not ideal! All I want is the latest posts sent by admins and if those posts are updated or deleted to trigger also.
Any advice?
Here is my request:
Any help would be greatly appreciated.
Many Thanks

Is it possible to have a fb bot send out a link every time something is posted?

So the question is in the title. Basically, at the moment I have finished making the tutorial FB Messenger bot. I used Heroku to get the URL and everything running.
My issue currently is that I can't find anyway as how to make the bot send messages out to the people who have liked its page without a received message.
The end goal is to get the bot to send out a link updating its followers on any new posts made.
Is this possible?
Thanks in advance for any advice

Facebook App - Post news - I want to be able to post on peoples walls when new content is availiable

I've built an facebook app, and it works pretty well.
But for some reason I cannot find or cannot understand how I will be able to alert users that new deals are waiting for them in my app.
I'm using canvas.
All I want to do is alert users when I have new content(updated my Database). I can already post to users wall, through sdk. But i want to send it to all users
Any ideas please.

How to show a post also on the user stream?

I developed a simple app on Faceobok that posts something on user wall. My issue is that the post isn't seen on wall stream, so he/she will probably never read it.
I developed this app in PHP with Facebook PHP-SDK and to post on user's wall i use: $facebook->api($userId .'/feed/','post',$attachment).
Is it possible to show the post also on user' stream? (Maybe I forget to add a key/value in the attached array...)
Alternatively, is it possible to send a notification to the user in place of post or a notification linking to the wall post?
The post is personalized, so this is why I don't use a facebook page.
Thanks in advance.
Maybe you want to send them an app-to-user request …? http://developers.facebook.com/docs/requests/
But keep in mind that you have to delete these requests yourself, once the user followed them.
Posting on the user stream is not possible (posts are visible just on user's friends stream).
Notification are not allowed, just for requests.

Get Facebook Posts and Tweets to use on own app

I want to know if it is possible to get the Facebook Posts or Twitter Tweets from a user at the time that they are created/posted.
I know I can get the old posts/tweets from a certain user, but I need to get them when they are created. Otherwise I must check all the time to know if the user has posted or tweeted something.
Is there a way to accomplish this?
For twitter, see the streaming api - specifically user streams.
For facebook, there are real-time updates.
For Facebook, you can have your HTML code subscribe to the http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ on the "edge.create" which says a like happened. Then you ajax to your server that the user liked it and you store that information in your database.
For Twitter, you can subscribe to events as well. See https://dev.twitter.com/docs/intents