Generate Account Service JSON is not available in Firebase - firebase

In Firebase, I've always been able to generate Service Account JSON. Today, created a new project as always and could not find it. When I refresh the button does show briefly and disappear. I don't understand what is the problem and the documentation for generating an Admin SDK still says that you create a Service Account JSON with that button. You can see in the image below:
Can I have an explanation on why it is happening and how can I solve this?

Related

flutter firebase dynamic links - wrong link is captured in app

I'm trying to capture the query paramters of a dynamic link.
In firebase console, the dynamic link is set as
myApp.page.link/myPage?par1=1,par2=2
The link that I build programmatically is:
http://myapp.page.link/myPage?st= Hi there &amv=0&apn=com.myapp&ibi=com.myapp&imv=0&link=https://myapp.page.link/myPage?par1=123&par=456
When I capture the link in the app, using FirebaseDynamicLinks.instance.onLink, I get
myApp.page.link/myPage?par1=1,par2=2
instead on the expected parameters par1=123, par2=456.
Flutter doctor has no errors
What can it be?
It looks like it might have been the fact that although I was using a device as an "emulator" in a debug mode.
Once using the "real" app from google store, the problem was gone :-)

How to fix firebase index issue?

While launching the react native expo app,got this prompt.
The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/production-a9404/firestore/indexes?create_composite=Ck5wcm9qZWN0cy9wcm9kdWN0aW9uLWE5NDA0L2RhdGFiYXNlcy8oZGVmYXVsdCkvY29sbGVjdGlvbkdyb3Vwcy9jb2lucy9pbmRleGVzL18QARoMCghhdXRob3JJRBABGg0KCWNyZWF0ZWRBdBACGgwKCF9fbmFtZV9fEAI
When I clicked, the google console showing error as below.
But, this one worked earlier for a different collection and when trying for a new collection, getting this.
Please suggest.
It looks like you're signed in with an account that doesn't have permission to read or create indexes.
You should open the link from a user account that does have those permissions. When you do that, you'll see a screen that has all information prepopulated, and you can create the index with a single click (and some patience).

How do I find the Google billing account/project related to an API key?

we look after some websites built by other people and have had issues with the map not working because the associated billing account is invalid, but we have no idea what account or project name it relates to! Is there a way to look up the API key and get back to the account? Thanks.
Right click on the screen and navigate to inspect element. You will get the code written, find out the api key written in the code. Go to your google api console find out the project which is attached to your api key.
Hope it Helps!
Thanks!

Impletmenting a custom meteor accounts package

I have been writing my own meteor accounts package and I seem to be missing something. I am not getting any errors in the browser or in the terminal so it's difficult for me to troubleshoot. The only error I get is from the accounts-ui package itself which is saying 'No login services configured.' The code can be seen at https://github.com/khamoud/meteor-accounts-stripe if anyone could take a look. Thanks in advance.
I created a accounts package myself a while ago and my advice would be to stick to whatever is done in the base accounts packages of the same service (in this case OAuth 2 it looks like) as closely as possible. I can see you have done that but there are minor differences.
I downloaded your package and tried it out myself. While I can't get it working (I haven't used the Stripe API so I wont be digging into it completely) I think I can make more progress than you have had.
First of all I don't get a 'No login services configured' error. Did you add your package? I did 'meteor add accounts-ui', created a packages folder in the my project's root and pasted your package folder into it, renamed it 'accounts-stripe' and did 'meteor add accounts-stripe'.
I then added a {{loginButtons}} helper to the page. With this I got the configure Stripe login buttons but it wouldn't open a pop-up when I clicked on it. I got an error message in the js console 'Uncaught Error: Duplicate service: stripe'. The problem seems to be you have the line:
Accounts.oauth.registerService('stripe');
in both accounts_stripe.js and stripe_client.js. Removing it from stripe_client.js fixed it for me. I could then add my API keys from stripe.
The next problem is once these are submitted you store them in 'clientId' in stripe_configure.js but then retrieve them using appId from the config object in stripe_client.js and stripe_server.js. I noticed this because the login URL in the pop-up after submitting the API keys had a undefined client_id. Changing 'clientId' to 'appId' in stripe_configure.js will fix that.
Unfortunately it still doesn't work. I get
{"error":{"message":"No application matches the supplied client identifier"}}
from the pop-up window. This could be for any number of reasons, perhaps I submitted the wrong thing in the API keys window, maybe it's because I'm using a test project on Stripe, or maybe you have implemented the login workflow incorrectly. A quick google of the Stripe OAuth docs suggests that I have submitted the wrong things for the client_id and secret. Like I said I haven't used the Stripe API before.
I hope I have got you started on fixing it though.

How To Create Facebook Application programmatically?

I want to create a facebook app from within my code.
When done manually, I have to go to developers.facebook.com, go to the apps section and click on "create a new app". This will create a new app and facebook will ask me to provide the basic information like
App display name
App namespace
Site url
canvas url
This will create a new app.
I want to do the same automatically. Is it possible with RestFb?
Answer to your question is, NO you can't do that by any Facebook method and the reason for the same is similar to the reason that due to which you can't create Page, Facebook user account, Group through Facebook's API and it is security which other poster has listed out.
Think about it. If you could do it by code you could atuogenerate infinite apps automatically. It will be a dangerous security hole to facebook. So, you have to do it manually.

Resources