sharing a post on social media through reactjs application [closed] - reactjs

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a react based application, I want to post on social media such as Facebook, Twitter, and Instagram from the application itself without having a separate tab. From application itself it should post automatically on social media... it will be great if i can get some poc

You can use the APIs from the respective social networks. Each social platform will have its own developer APIs that are used to post from other sites. Like
Facebook - https://developers.facebook.com/docs/apis-and-sdks
Twitter - https://dev.twitter.com/overview/api/twitter-libraries
Instagram - You can't actually post anything using APIs
You can also achieve this through other methods. Refer here

Related

Graphql not loading data when page opened in new tab [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I am using graphql api for accessing some data ie. Transaction history for some payments.
When I am opening page by tapping on button to open page it is working fine. But when I am opening the page in new tab the data is not loading. When in the new tab I am refreshing then again data is loading.
Database used - mongodb
Api - graphql
Framework - react
Please someone help, I've searched whole google but couldn't find anything.

Firebase storage path to store images of a social post [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
I'm currently working on a social platform where users create posts similar to Facebook or Linkedin. So what I'm trying to achieve is, whenever user create a post they may upload images as part of the post and I want to store them in firebase storage but what I'm not clear is, what type of storage path I should choose from one of the below for uploading images.
Which option is right for user posts from the below?
Create unique storage path for every post of a user and upload
respective post images there
Create unique storage path for every user and upload all user posts
images there
Create a generic storage path for all users and upload all users
posts images there
I'm using Firebase storage and database for this app.
There is no singular correct or best approach here, it all depends on your app's needs and use-cases.
I typically would use a folder structure with /images/$uid/$postid, for example because it makes it easy for me to delete all images for a specific user, as well as all images for a specific post. But as you can see from that description, that calls out two specific use-cases that might or might not be relevant for your app.

How long will it take to update something on a deployed web application? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am very new on Deployment. So I tried to deploy my react app on Firebase. But after that, when I update it, it doesn't seem like the web page will change right away just like in the local. Do I just have to wait or do I have to config something before the update displays on the webpage? Thanks!
Once the deploy to Firebase Hosting completes, the results are also sent to the CDN nodes instantly. If your clients are not seeing the updates, it's most likely because the browser is showing cached results.
You can control the caching with cache-control headers that you can configure in your firebase.json file. Alternatively, you can disable caching for your development site in your browser, or press ctrl-F5/cmd-shift-R to force it to reload the files from the CDN/server.

progressive web app (react app) with facebook login [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
i have created a react app with pwa and i integrate facebook login to manage user.
i found the problem on my android device (android ).
in the standalone app, when i click login with facebook, the app open the new embed window to sign-in with facebook account, after sign-in success, i got back to my website but still in the embed window.
i need to close this window, and re-direct to my pwa app instead.
is there any solution to fix this problem?
You should definitely go for the cross-platform technology. ionic framework is a great way to start hybrid app development. Cordova provides a large number of plugins, working across platforms and has many active repos in gitHub. And since it only requires you to have knowledge of basically three web technologies.(html,css,angularjs). and is the best framework for developing SPA.
SO start of with IONIC FRAMEWORK.

Hosted mobile web app to the app store? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a mobile web app hosted on a server currently. I would like to submit this to the Apple, Google, and Microsoft app stores, but all the PhoneGap samples involve packaging up all the HTML, CSS, and JavaScript files and wrapping it. I want to make it even simplier by leaving the mobile web app hosted on the server and use PhoneGap only as an iframe to view the hosted app. That way, I can make updates that would propagate to all the devices without having to update through the app store. Also the main reason for me wanting to do this is because I have about 20GB's of audio and video files that I obviously can't packaging up into PhoneGap and place in the app store. Any help or advise would be greatly appreciated!
Simply put, you can't do that.
For one, like you said, PhoneGap needs the HTML, CSS, and JavaScript files, they can't be hosted and still be packaged. Also, Apple does not allow you to make updates without going through them, it's one of their rules, so you would not be able to make updates like you asked. Last, I also know that if it is something that could work as just a mobile web app, then it will most likely get rejected when submitted. And I guarantee you that if you only put an iframe that links to your current app it will not be let through.
The whole point of PhoneGap is not let you put web apps into mobile app stores, it's to allow you to use such technologies as HTML, CSS, and JavaScript to build hybrid apps that also give you access native features through plugins.
It already sounds like you have something working and have no need for PhoneGap. Simply tell your users to add your site to their home screen, it will give you the power you're looking for to push updates without forcing your users to update through an app store.

Resources