Sending facebook direct messages - facebook-graph-api

Is it possible to send direct message using the facebook graph api? I’ve read old posts that suggest this is not possible but wasn’t sure whether this is still the case today?

https://developers.facebook.com/docs/reference/api/message/ but this messaging systems seems to be for reading the messages only.

Facebook uses open protocol XMPP
more here: http://blog.facebook.com/blog.php?post=297991732130
You have to those one of many clients or libraries or write your own to communicate with facebook..

Related

Can we send two different invite for same event in outlook using graph api microsoft

I am trying to send two different invites with different bodies for users.
example requirements:
There are interviewer and applicant who needs to notify
we want to create event and send them with different body invite.
In Google Meet there is an option for conferenceData using that we can do this task.
Is there any way in Microsoft Outlook to use REST graph API for the same task event?
Thanks in advance.
Currently, Graph API does not support your scenario. Being said that, please consider raising user voice here for the feature ask that you have so that it could be considered for future implementations.
Hope this helps. Thank you.

How do I send a Purge Request

I'm trying to purge several URLs via php of Akamai servers. So far I've been using the CCU Rest Api which simply sends a HTTP-Request with the urls and options encoded in json. I've heard that the support of this API will end soon so I wanted to use a different API to do it.
I wanted to use this one
Since the documentation is really unstructered and does not tell anything how to send the credentials to the server. I already found their GitHub repositry but I didn't understand anything because I'm pretty new to PHP.
Can someone please explain me how to send only the Purge Request? Validation and checking the results is a piece of cake, the Request is the point where I'm struggeling.
Thanks a lot
You can use the newer OPEN API, I've written a blog post telling you how to get started
https://community.akamai.com/community/developer/blog/2015/08/20/getting-started-with-the-v2-open-ccu-api
The older API is much less secure, and the newer method will allow, very soon, for 5 second purges.
Let me know if you have any more questions,
Thanks,
Kirsten

WebRTC and Django

I want to be able to use a data channel for the client connecting to my django site in order to send data to the django server and have it process that data (as opposed to using ajax for instance). I tried searching the web for the but could't find anything usefull. Is it possible to do what i'm asking?
I realize this is a fairly old question, but there's misinformation in the reply above. WebRTC is a peer to peer protocol, not specifically a browser to browser protocol. In other words, the fact that a browser is a WebRTC peer is an implementation detail, not a standards requirement.
The IETF requirements document, section 3.4.3 specifically gives an example of a server-based peer for a video conferencing use case. Having said that, it's a nontrivial project; look at Asterisk's rtcweb support or Erizo for examples in the wild.

ColdFusion and Streaming APIs... (i.e. Twitter)

Has anyone had any luck using ColdFusion as a way to collect data via streaming APIs?
i.e. - https://dev.twitter.com/docs/streaming-api
I know the best option is to use an app that literally sits on the server monitoring these portals. Just curious if anyone has done anything using CF yet.
Aaron Longnion built refynr.com using CF9. It's a service that collects users' Twitter streams based on supplied criteria. I imagine he's down something like you describe.
However, I'd look into the new web socket functionality built into ColdFusion 10 and see if that makes consuming streaming APIs any easier.
http://labs.adobe.com/technologies/coldfusion10/
If you know a bit of Java, it may not be too difficult to use Twitter4J, and build an event gateway for your CF app to consume the stream.
If you want to go the web socket route, see: Twitter + HTML5 webSocket API

Real time web services

I have a little (maybe the answer could require a book) question about web services and server side programming.
But first, a little preamble.
Recently we have seen new kind of applications & games using some kind of real-time interaction with a database, or more generally, with other users. I'm talking about shared drawing canvas, games like this , or simple chats, or the Android app "a World of Photo", where in real time you see who is online, to share your photos, etc.
Now my question:
Are all these apps based on classic TCP client/server architectures or is there a way to make them in a simpler way, like a web platform like LAMP?
What I'm asking, in other words is:
Can PHP+MySQL (or JSP, or RoR, or any other server language) provide a way to make online users communicate in real time and share data? Is there a way to do that without the ugly and heavy mechanism of temporary tables?
Thank you! I hope I've been clear.
There is this crazy black magiccy thing called P2P (peer-to-peer) that makes all of this possible.
I don't know, but I don't think it will catch on.
8-D
EDIT: CRAP....I didn't see the date the question was posted.
I can't believe it. This is my third consecutive question that involves XHR Long Polling aka Comet programming. Daliz, what you want is possible, easy and been done by various websites using XHR Long Polling.
The concept: Normally, web browsers send a request to the server, server sends a response back and closes the connection to the browser. Instead of closing the connection at the end, Comet programming keeps the connection open. So, the connection between the browser and the server is still open. So, in simple terms, when we want to connect to Alice, we find the thread connecting to her browser and send the message to Alice.
Facebook chant uses the same concept. Please read This.
If your client is not a web browser but some web service, then it is more easy. Web services unlike web browsers have an address. So, client service calls the main service with a callback URL and registers to a particular event. When that event happens, like someone drawing something, main service will use the callback url of the client service to notify about that action.
On sharing data like Photos or another binary data: it is also possible as the input stream from one user is send to all other related users. So a simple String or a photo can be shared. But it also means the user on the receiving end of the photo will not have a message like "xxx has sent you a photo. Click here to download it". They will simply get a "Do you want to open or save this file" option.