Use Facebook messages API/SDK in chrome extension? - facebook

I'm trying to create a simple and fast Google Chrome extension for facebook messaging(it will be much more convinient than opening FB page just to check unread messages). I've spent many hours trying to find a way to retrieve the messages in the extension, however unsuccessfully(everything about this topic is outdated).
An option would be the extention to make ajax requests to a server of mine, which retrieves the FB messages via PHP I guess?
Other than that, is there a way to login in facebook and retrieve the last conversations via Chrome extension?

Related

Windows 10 UAP: Share data on Facebook

Is it possible to correctly share data on Facebook post using DataRequest and DataTransferManager classes?
I am trying to create a Facebook post using DataTransferManager.DataRequested and DataTransferManager.TargetApplicationChosen handlers.
I have Facebook web page and I am providing link to it by calling dataRequest.Data.SetWebLink(facebookWebpageUri) in my DataTransferManager.TargetApplicationChosen handlers when chosen app is "facebook".
The problem is that Facebook should scrap the webpage for the data it shows in the post as it does in my Android and iOS apps but in my Windows 10 UAP it does not do this. It only shows the title and the text set by dataRequest.Data.SetText if I provide it before invoking share using DataTransferManager.ShowShareUI()
There are two type of app for sharing Interaction: one is source app, the other one is target app.
As a share source(UWP) app, we handle the source data, for your scenario, the facebook is the share target.
What we can do is dealing with the data you want to share, which we have done already. As the target app, facebook need to be able to resolve this source data, this work can not be done by the source app.
What you can try to do is:
Contact with the facebook to submit a suggestion.
Use the web api of facebook.
Try to find and use some third-party libraries of WinRT.

Facebook graph api feed and home give old data

when I using facebook graph api explorer for feed and home data,it always gives old result.
Generally me/home gives recent friends activity which show as like as when facebook.com open and feed gives if someone tag me,or comment my status releted to me.but when I compare with my feed wall with data given by grap api me/feed or me/home its show that graph api response is not updated. I can't use real time update its only because real time update does not support native desktop application.
so is there any other way to get recent update of recent activites except me/home and me/feed method?
I think you should consider using real time update. The fact that it doesn't support native desktop application isn't a real problem. It just means that you have to do some alternations in your application.
I don't know what OS you are using or what programming language you are using, but I think it's rather safe to say that your toolbox when it comes to your technologies can support calls to a web server or a web service.
Then you should use the web server or web service to implement the real time update specifications given by Facebook.
Alternative, you call poll Facebook API on a regular basis but I would not recommend it.
Use real time update and check your web server for new messages. This solution is working quite good. I have received updates from Facebook within 10 seconds after they have been posted.
If you don't want to poll your web server, try to implement it using web sockets (HTML5), perhaps in combination with node.js.

Is there any way to connect to the Facebook chat service without using the XMPP protocol?

I am trying to create an application that will basically be a Linux command line messenger app just for Facebook chat. When you connect to facebook chat using the XMPProtocol, you can send instant messages to all of your friends but you can only see the messages from the friends that appear online. If an offline friend sends you a message, you do not see it. I have tested this with various chat programs (like pidgin) that are using XMPP to connect to facebook chat.
There is an iPhone app called "Messenger" that allows you to send and receive instant messages even when your friends appear to be offline. How is this possible? Do you have to use some other protocol? I tried making a research about this, and while there were many references about XMPP basically having this limit, there was no reference about how you solve this problem. I'd appreciate any clue regarding the direction I should look (may that be just the name of a protocol, an open source project that has this feature etc).
chat and inbox are two faces of the same Facebook backend ...so i mean you can read message sent by your Facebook friends by Graph Api http GET as this ... https://graph.facebook.com/me/inbox?access_token=xxxxxx

Can track belong to the application and not individual users?

My application isn't going to be revolved around soundcloud users, I will be using it for its nice api that is provided to stream audio. I also want to use the javascript upload feature but that seems to be out of the question too.
The record widget should be able to upload the audio to your server so that you can upload the audio not as an individual user.
I still haven't been able to get my app to work without using their authentication window.
Any help would be appreciated.
Nearly everything you do with the SoundCloud API must be done on behalf of a SoundCloud account. You can only use the SoundCloud API to stream content from or upload content to a SoundCloud account.
If you'd like to have SoundCloud functionality in your app, I'd recommend allowing users to connect their SoundCloud accounts.
"Authenticating without the SoundCloud Connect Screen", from the API docs: http://developers.soundcloud.com/docs/api/guide#user-credentials
With this method you can log in as a user in the code. Since every app must be registered to a user anyway, you can make a new username to register the app, and log in with that one.

Sending Facebook app request using Tornado Framework

I am a student majoring in CS and very newbie to Facebook app development. I couldn't find any good resources online so, I was wondering how can I send an app request or a message using python tornado framework to targeted user? So far, I have my app access token but I couldn't get app request to work... I need some kind of reference to follow but I am not having good time finding one that is "SIMPLE" enough... Thanks!
Regardless of the backend framework, doing app invites is all client-side, so as long as you can stream out HTML from your server with the correct Javascript, then you'll be well on your way.
See: http://developers.facebook.com/docs/reference/dialogs/requests/ For information and examples can be found and played with in Javascript tool at: http://developers.facebook.com/tools/console/ click Examples, then click apprequests