I am trying to track all CRUD activities on my web app. I am using React and .NET with MySql. Idea is that if someone edits let's say client data (phone number, address, etc...), I want to have something like an activity log where I will see WHO edited that client and WHAT he edit.
Let's say You are an admin, and you go to list off all clients, then U click on one and get redirected to the preview page of that client. On the bottom, you will see the activity log.
Related
Honestly, I am not sure how to describe my specific problem but I can give a concrete example.
You have a web page that asks users to connect various social media accounts. Once they do this, you provide the connected accounts to a backend which can connect to each social media account (using oauth or auth or whatever) to pull different data and provide a social media analytics report. Assume this is all secure and safe, this is not the main concern.
Now suppose the following:
A third party website uses your services to determine if users can be eligible for sponsorship based on your analytics reports. They have their own form that they request users to fill out and at some point the form re-routes the user to your web page for the social media analytics part. Upon completion, your site must send that user back to the third party's website with the social media analytics report. How would you do this, securely?
I thought of something like the following:
The third party routes their user to your website by making a GET request with the following parameters: applicationId=some_third_party_application_id&callbackUrl=their_callback_url.
Your webpage could pull the applicationId and the callbackUrl from the parameters and cache it in localstorage or whatever.
The user goes through your flow by connecting various social media accounts and your webpage sends these connections to a server which computes the social media analytics report.
The analytics report id is returned to the webpage by your backend and now the webpage can send back this id of the analytics report to the callback url that was initially specified in step 1.
The flow resumes on the third party's webpage and they can then call another api of yours to get the analytics report details from the id of the report you sent back via the callback url.
The third party then uses the details of the report to determine if the applicant is worthy of sponsorship.
I guess another example of this flow could be like credit reports for like a car loan or something. You would apply for a loan on one website that integrates with a credit provider. The credit provider sends back the report to the auto loan provider and this is done seamlessly and securely.
How is this done/implemented in the examples I have outlined securely? Are my thoughts on the right track?
I've searched and I can only find tutorials to pull info from a server to update the latest info of my PWA app using JSON. But I can't find any way and any example to fetch data back to a server to mantain for instance a Database updated and display that to all users which may use that PWA.
For example, I have a PWA that let me login (client-server communication), then it displays a list of contacts that were stored in a Database. I can delete, modify or add new users to this list from my PWA app, and after doing that, they'll update on my server Database, so if my friend Paul, wants to check the updated list from his account, he'll see the new changes.
How Can I do that? Which language would I have to use, php and Javascript (Ajax)? Which is the most fluid and optimized way to do it according to a Progressive Web App.
I guess you are trying to store user changes back to the server(webservice and then to the data base).
You have to make an AJAX call to your web service and pass the required data needed to store in DB.
Here is an example.
https://www.w3schools.com/xml/xml_http.asp
Depending on the framework you are using, you might have more options to call a web service. Like here is an example for Angular -> https://www.w3schools.com/angular/angular_http.asp
Just created a new account and integration with Web messenger widget on smooch.io. (So no direct API or similar, just the widget)
I can see messages coming in through the logs tab, like this:
logs of incoming messages
But maybe I am dumb or blind, but I can't figure out how or where to respond to these conversations...
Thanks for any input.
You need to integrate with a system in order to intercept these messages. You can view available systems here: https://app.smooch.io/integrations
My company integrated the web messenger with slack. Every time someone writes via the web messenger, it shows up in slack.
I was wondering if it is possible to have multiple custom push notifications setup in a single AIR App.
What I am trying to do is allow users to setup custom alerts based on information they would like to receive for example say user 1 would like to know when new actions or drama movies are released on DVD, user 2 would like to know when new comedies are released, user 3 would like to know when any new movie is released.
This is a simple example and there are possibly 1000's of options (postcode/zip information).
Thanks
Technically, there's nothing that wouldn't allow you to do this.
The implementation is mostly backend related though, let me just quickly draft a design for that here;
The user's device registers for push notifications at your backend service.
Your service takes the user's id stores in a DB and passes the device token to the corresponding push notification server.
Once the registration is completed, the user selects what items he'd like to get notified of (naturally your backend service has to know this information as well to store it in the DB).
As soon as a new action movie (or whatever kind of information the user registered for) is available, your service looks in the DB what users registered for that kind of movies and sends a message via push.
So a simple database and some server side scripting will get you going.
I have a simple product catalogue for businesses. There is a catalogue's management interface for adding products. Each business has a unique domain name where all its products are listed.
I would like to extend catagloue's functionality and allow businesses to have their products listed on facebook.
Functionality of the facebook application:
- Each business can install application from catalogue's management interface (I would like to have a button that opens facebook in a new window and prompts user to authorize access to one of user's existing Facebook Pages)
- installing application adds a Tab on selected Facebook Page,
- by clicking on a Tab visitor of the Facebook Page is presented with a list of products specific for this business. Data for that page is dynamic and can be accessed with a REST call and presented as json or html.
We would like each business that have a product catalogue with us to install application and have it automatically configured to use specific domain name when requesting product data.
Is it all technically possible? Could you point me into the right direction on how to
- install application from external website
- configure that application with a parameter (perhaps passed in url when requesting application installation)
- automatically add Page Tab for this application
Cheers,
Michal
Yes it is possible. But it'll be a little different from what you are thinking, i guess.
I recently implemented code to add a tab to a page programmatically, it is as follows(in PHP) :
$tabAdded=$facebook->api("/".$id."/tabs","post", array("access_token" => $access,
"app_id" => $fbconfig['appid']));
From the code we see that we need an app id, an access token, and the page id($id). $facebook is an instance of the FacebookPHPSDK.
So here's how we can get the three things in question:
First app id, you'll need to create a Facebook page tab app, select Page Tab in the app's Basic settings (where you can mention the page tab url. This url will have the content for a page tab.) You'll also need to enable website because you need to ask the user for necessary permissions (namely manage_pages). For your specific requirement you have to give the domain of the catalogue management app.
Second page id and access token, once you have manage_pages permission you can query the graph api to get the pages of the user using : api('me/accounts') this returns data with page name, page category, page id, page access token for all the user's pages.
#thaddeusmt has already mentioned that you can't create new applications, and need to use the same app, you have to read the signed request and get the page id, and serve content. All that will be left to do is link your customer domains to the correct page ids.
Hope this was useful.
You can install/uninstall (add/remove) application tabs to/from Pages using the Facebook API:
http://developers.facebook.com/docs/reference/api/page/#tabs
You cannot create new applications, however. So you will need to use the same application for each Page.
The way you can show different content for each Page in the Tab (using the same application) is by checking the Signed Request. This contains the ID of the Facebook Page. The code that serves up your application Tab can look at the Page ID and serve up the appropriate content for that Page.
I hope this helps get you on the trail. Good luck!
Yes it is possible.
It's a two way process
First you have to get page_access_token through graphAPI.
www.facebook.com/?fields=access_token
This will return Page_access_token.
Use page access token and use post method
www.facebook.com/yourpageid/tabs/
Post Parameters:
app_id= 'YourAppID'
access_token = 'access_token'
That way you can add your facebook app into facebookPage.