Password prompt on status update or profile update event? - passwords

I'm looking for docs in order to understand if I can subscribe to a status update or profile update event and then ask the user for their password in an in-facebook app?
This is to stop other people from picking up your phone, logged in browser and playing a joke by updating these :-)
Is there a trigger to subscribe too?

No, currently Facebook does not offer a way to moderate feed posts this. As you probably found out they do allow you to subscribe your application to a user's events. However, the action is not really stopped for moderation.

Related

Is there a event handler for new comments for Facebook comment plug in?

I am trying to leverage Facebook comments plug in and push notifications for post on my page. What I am basically trying to do is:
user creates a post
the Facebook comment is dynamically inserted for that post by suffixing id from that post.
The above two are already done in the page.
Now what I want is, when someone posts, a push notification is subscribed if the user allows and when a comment is made a push notification is pushed to the user. The user is identified by the ID of the post as well which is stored on database.
I tried to attach a event handler on Facebook iframe comment box but was thrown with cross origin error.
I was trying webhooks but couldn't work on local host and found I need ngrok to validate my test url. I am posting this to ask is that is my flow even valid or I am seriously misunderstanding the concept. If someone could validate my flow.I will be happy to work on it or I will be just wasting my time.
Here's the link with the Facebook comments applied on post:
https://helpingcow.com/postit/get_share_listings
The facebook have killed "comment.create" event subscriptions.See the answer here to my related question answer.The preferred method is to use webhooks.
As I have already mentioned in question,that I cant use ngrok because it only supports python 3.6 and above and I have 2.7.
But I used localtunnel from npm.It did the work and I have validated my localhost url and test webhooks are now functional.I really dont need the data from the json payload from webhooks but just need a way to get to id of the posted item when the facebook comment is posted but there is no way the client can know about that event unless some server sent events are used.

Suppress messenger chatbot notifications

I have a simple chatbot answering questions from the menu.
Every time the user starts conversation ("get started"), or choses the question, which gets answered by chatbot, it creates a notification.
Is there any way to ignore messages invoked by chatbot menu (notification-wise) and only notify page admin when the user writes his own message?
Disabling notifications this granularly is not supported.

Onesignal: Web push notification for capture user votes

I am trying to implement a mechanism to push web notification to users and ask for their votes. I want to capture and store user's votes in my DB based on the feedback given.
For this purpose, I am using Onesignal's web push notification. I have managed to add a tag to each user to identify the user. So I can now send notifications to specific users. But when user clicks on the notification, I want to have the information about the notification like player-id, the actionid, notification id so that I can capture this information in my DB. I am not sure how I can get that.
Chrome and Firefox can support web push webhooks which may help, but I still don't have any solution for Safari. Can someone please suggest any alternatives or workarounds?
Thanks!

Can you have the bot initiate a message?

I am new to wit.ai trying to wrap my head on how the story builder works.
If I wanted to have the bot initiate a conversation instead of the user triggering the start flow by asking a question, is there a way to do that?
This is currently not possible but we will working on it soon. In the meantime, you can simulate to send a user message like "#Init" to trigger the first Bot Answer when you init you conversation.

hangout API event on exit

I created a Hangout API that works to send invites to certain users from my server by sending an ajax request from my app with hangout url etc.
For now I need hangout event on exit so that I can make another callback to my server indicating that particular hangout has been closed.
I know it sounds odd. I looked around on https://developers.google.com/+/hangouts/api/gapi.hangout but didn't get any such events.
Can I tweak it in some other way to get a notification on exit?
I think this was already answered on the Google forums. The short answer is no there is currently not an event to detect the exit of the Hangout.
You could have your app send a periodic heartbeat to your server and once you detect a timeout then you can conclude the hangout stopped.
Another approach might be to implement an onbeforeunload handler within your hangout app and use that to send a Ajax call back to your server each time a participant leaves or just when the final participant leaves. You can get the participant count from the API and might also be able to use the participantChanged event. Not sure if participantChanged event will fire if the last user exits the hangout by closing the window, that could be a route to explore too.
+1 what Brett said for the heartbeat. I would also optimize by only starting the heartbeat when there is one participant. It would be rare that everyone exists the hangout at the exact same time.
Darn solar flares!