Automatically provision Twitter app for firebase - firebase

I have a main website. From that main website, a user can create a child website that is running on a different subdomain. For this, I will have to create a new Twitter app to use authentication. Each child website will also use their own firebase instance, so the callback url in the Twitter app will be different. Is there any way to provision the twitter app automatically, so I can retrieve consumer tokens / secrets. Or do I really need to scrape the complete website and submit forms as they appear on the site?
I did not find any useful information but there are applications that have the same requirement.
fabric.io states that they are doing that:
Fabric can automatically provision a Twitter app (recommended) and
generate keys during the Twitter Kit installation process.
Update: fabric.io no longer supports this (see comment)

Related

Do firebase dynamic links work with PWA applications?

Firebase dynamic link documentation does not show Web as a category it supports but I wanted to know if there is any hack out there where can get it to work for PWA applications? the google analytics tracking for firebase is a powerful feature, especially for dynamic links.
Even though there is no specific API for this, since Dynamic Links are just URLs, you can indeed use then within a web app.
For example, we used them in the PWA for the Firebase Summit in 2018 to track click-throughs to the additional information for each session.
If you are having issues with your PWA not running correctly in Facebooks (insert expletive) Mobile Browser. Using dynamic links will force it out to the regular browser)
Do not use a custom domain, use the https://YOURDOMAIN.page.link
and DO NOT skip the preview page!

Firebase Dynamic links Analytics not shown?

I am exploring the dynamic links in firebase. My requirement is I will have an sms in my cell phone, which will have a short link and upon click of this link I will open a web page (later we might integrate this with a page in the app)
So I created fire base account and setup an app using my personal gmail account.
Am using their post api with the right api key to generate short urls. (getting warning about the phishing issues which I am ignoring for the time being)
Upon clicking the urls (short link/preview link) I can go to the appropriate URL I have configured.
now I am trying to see the analytics around this dynamic url but dont know why I cannot see anything.
I am checking Grow -->DynamicLink--> Selected My app and I expect the dynamic link generated in above steps to appear here but I cannot see anything.
I am going to analytics -->Events it is asking me to add an app to see the analytics which is not the case for now as I am just hitting the url on the browser directly.
Please let me know if I am doing the right thing?
One of the main use cases (as mentioned in firebase docs) of the firebase dynamic links is web to app conversion and your app must contain the firebase SDK. Once the user comes to the app through the dynamic link, firebase SDK fires the appropriate events. These events can be tracked from analytics -> Events.
But your use case is different you are creating dynamic links for the SMS and after clicking user comes to the website and there is no firebase SDK installed in your website hence no analytics (although firebase will measure some events like click, etc) on the analytics -> Events.
If you want to see the analytics, you will need to create a dynamic link in the firebase console manually or use the dynamic link analytics api.
In short, API created dynamic links can only be tracked if firebase SDK is installed in your app and after that, you need to add that app to firebase analytics -> events section. According to your use case, my suggestion would be to either create dynamic links from console manually or use the dynamic link analytics api

How to connect Wordpress and Firebase for authentication and real time database?

I am currently working on a combined Android and WordPress project for a restaurant. I need to connect WordPress to an existing real-time Firebase database and authentication. My Android is working with Firebase and supports sending and retrieving data but I am unable to apply this with WordPress. So far the database does not update properly and no changes are shown on the app. I am using WordPress for the admin to make change prices, add new food, and generate reports. The Android component is customer facing and intended to allow ordering food.
I have tried using a normal static website and it was connected to Firebase but I am unsure how to implement this with WordPress.
There is a plugin - Integrate Firebase that connects Firebase to Wordpress.
I have been able to get it working, but it seems to work on the API key rather than using a service account. Which means you need to have the rules set in firebase.
The author seems reasonably active, so I am hoping to get more info about connecting with a service account (rather than API), in which case I'll post it here for you.

How do I create or find the Facebook App ID and Secret for an existing Organization page?

I am not a coder, just a marketing director trying to obtain the App ID and App Secret for my organizations existing Facebook Page. I need these for a wordpress plug-in to show our Facebook events on our website.
Insight would be super helpful. (Detailed instructions on what to do)
Pages do not have an App ID or App Secret, Apps do. You will have to create an App - which is completely unrelated to a Page in general.
This is where you can create an App: https://developers.facebook.com/apps

(Drupal twitter module) Adding twitter account used to log in, to that user's twitter accounts list automatically

I'm using Drupal twitter module with recommended Oauth version(2.02) and I can post to twitter via API successfully. but, I have to manually authenticate the application with the user in /user/%/edit/twitter page.
But I would like to create a fully twitter-integrated web site that automatically add twitter accounts used to log in to the site, to twitter accounts of that user's list.
If somehow I managed to do this, once user log in to site via Twitter can see their own tweets in my site without adding them manually.
But I'm not sure(and looking for your kindly help) how to make this combination.
Drippic.com has already done this. Once logged in, users can tweet without having to add the account again.
I use same twitter application to do both registration and tweet-importing and the application asks for read/write access to the site.
This has fixed in later Twitter module's releases.
If anyone else has this problem, just update to the latest version and you can ditch the problem.

Resources